summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatergltfasseteditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloatergltfasseteditor.h')
-rw-r--r--indra/newview/llfloatergltfasseteditor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llfloatergltfasseteditor.h b/indra/newview/llfloatergltfasseteditor.h
index e35ed30ed0..b0ba8941b9 100644
--- a/indra/newview/llfloatergltfasseteditor.h
+++ b/indra/newview/llfloatergltfasseteditor.h
@@ -42,6 +42,7 @@ namespace LL
class LLSpinCtrl;
class LLMenuButton;
+class LLViewerObject;
class LLFloaterGLTFAssetEditor : public LLFloater
{
@@ -51,6 +52,7 @@ public:
bool postBuild() override;
void onOpen(const LLSD& key) override;
+ void onClose(bool app_quitting) override;
void initFolderRoot();
LLGLTFViewModel& getRootViewModel() { return mGLTFViewModel; }
@@ -60,6 +62,8 @@ public:
void loadFromNode(S32 node, LLFolderViewFolder* parent);
void loadFromSelection();
+ void dirty();
+
protected:
void onFolderSelectionChanged(const std::deque<LLFolderViewItem*>& items, bool user_action);
void onCommitTransform();
@@ -69,8 +73,11 @@ protected:
void setTransformsEnabled(bool val);
void loadNodeTransforms(S32 id);
+ void clearRoot();
+
private:
+ LLPointer<LLViewerObject> mObject;
std::shared_ptr<LL::GLTF::Asset> mAsset;
// Folder view related
@@ -79,6 +86,7 @@ private:
LLPanel* mItemListPanel = nullptr;
LLFolderView* mFolderRoot = nullptr;
LLScrollContainer* mScroller = nullptr;
+ std::map<S32, LLFolderViewItem*> mNodeToItemMap;
// Transforms panel
LLVector3 mLastEulerDegrees;