diff options
author | Anchor <none@none> | 2019-02-04 00:46:48 -0800 |
---|---|---|
committer | Anchor <none@none> | 2019-02-04 00:46:48 -0800 |
commit | 38bc052ec69f3785584f0c94f209dac7224db5fa (patch) | |
tree | 8b3d3e9515e374edb6fa58e3e0ee80a1f4ade524 | |
parent | 756a6028eb1234d1a7a177bb438fe5980f87f8d4 (diff) |
[SL-10079] - animesh handling for baked images
-rw-r--r-- | indra/newview/llpanelvolume.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/indra/newview/llpanelvolume.cpp b/indra/newview/llpanelvolume.cpp index 96dd309fa4..cd36c8f3f2 100644 --- a/indra/newview/llpanelvolume.cpp +++ b/indra/newview/llpanelvolume.cpp @@ -383,6 +383,26 @@ void LLPanelVolume::getState( ) } } getChildView("Animated Mesh Checkbox Ctrl")->setEnabled(enabled_animated_object_box); + + //refresh any bakes + if (root_volobjp) + { + root_volobjp->refreshBakeTexture(); + + LLViewerObject::const_child_list_t& child_list = root_volobjp->getChildren(); + for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin(); + iter != child_list.end(); ++iter) + { + LLViewerObject* objectp = *iter; + if (objectp) + { + objectp->refreshBakeTexture(); + } + } + + gAgentAvatarp->updateMeshVisibility(); + } + // Flexible properties BOOL is_flexible = volobjp && volobjp->isFlexible(); @@ -953,6 +973,25 @@ void LLPanelVolume::onCommitAnimatedMeshCheckbox(LLUICtrl *, void*) { volobjp->setExtendedMeshFlags(new_flags); } + + //refresh any bakes + if (volobjp) + { + volobjp->refreshBakeTexture(); + + LLViewerObject::const_child_list_t& child_list = volobjp->getChildren(); + for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin(); + iter != child_list.end(); ++iter) + { + LLViewerObject* objectp = *iter; + if (objectp) + { + objectp->refreshBakeTexture(); + } + } + + gAgentAvatarp->updateMeshVisibility(); + } } void LLPanelVolume::onCommitIsFlexible(LLUICtrl *, void*) |