summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNyx (Neal Orman) <nyx@lindenlab.com>2009-10-29 15:16:34 -0400
committerNyx (Neal Orman) <nyx@lindenlab.com>2009-10-29 15:16:34 -0400
commit011f3786b34904d2197817151600dd876679dbbe (patch)
tree31cab02942bc9b9ef0eeb4155de9096f2a1b6307 /indra
parent65f534899740018b8efb662f8154030edb07fc0f (diff)
EXT-1947 layer visual params don't invalidate baked textures
cloned visual params were picking up the mIsDummy flag from their parents. modified the createVisualParams function to reset this flag. code reviewed by Seraph
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lldriverparam.cpp1
-rw-r--r--indra/newview/llwearable.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/lldriverparam.cpp b/indra/newview/lldriverparam.cpp
index 45f4b4fbd0..527656ab6b 100644
--- a/indra/newview/lldriverparam.cpp
+++ b/indra/newview/lldriverparam.cpp
@@ -224,6 +224,7 @@ void LLDriverParam::setAvatar(LLVOAvatar *avatarp)
}
}
*new_param = *this;
+ new_param->setIsDummy(FALSE);
return new_param;
}
diff --git a/indra/newview/llwearable.cpp b/indra/newview/llwearable.cpp
index ebb9b0c13d..4cd29bb838 100644
--- a/indra/newview/llwearable.cpp
+++ b/indra/newview/llwearable.cpp
@@ -185,7 +185,9 @@ void LLWearable::createVisualParams()
{
delete mVisualParamIndexMap[param->getID()];
}
- mVisualParamIndexMap[param->getID()] = param->cloneParam(this);
+ LLViewerVisualParam *new_param = param->cloneParam(this);
+ new_param->setIsDummy(FALSE);
+ mVisualParamIndexMap[param->getID()] = new_param;
}
}