diff options
Diffstat (limited to 'indra/newview/llfloatergltfasseteditor.cpp')
-rw-r--r-- | indra/newview/llfloatergltfasseteditor.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llfloatergltfasseteditor.cpp b/indra/newview/llfloatergltfasseteditor.cpp index 13e0d36c35..d2cf24f1dd 100644 --- a/indra/newview/llfloatergltfasseteditor.cpp +++ b/indra/newview/llfloatergltfasseteditor.cpp @@ -54,7 +54,7 @@ LLFloaterGLTFAssetEditor::~LLFloaterGLTFAssetEditor() { if (mScroller) { - removeChild(mScroller); + mItemListPanel->removeChild(mScroller); delete mScroller; mScroller = NULL; } @@ -345,13 +345,15 @@ void LLFloaterGLTFAssetEditor::dirty() { if (!mObject || !mAsset || !mFolderRoot) { - closeFloater(); return; } if (LLSelectMgr::getInstance()->getSelection()->getObjectCount() > 1) { - closeFloater(); + if (getVisible()) + { + closeFloater(); + } return; } @@ -366,7 +368,10 @@ void LLFloaterGLTFAssetEditor::dirty() LLViewerObject* objectp = node->getObject(); if (mObject != objectp || !objectp->mGLTFAsset) { - closeFloater(); + if (getVisible()) + { + closeFloater(); + } return; } |