summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp24
1 files changed, 7 insertions, 17 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 18d215f9f4..e1b92e5f2e 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -2956,30 +2956,20 @@ void handle_object_edit()
return;
}
-void load_life_gltf_material(bool copy)
+void handle_object_edit_gltf_material()
{
- update_camera();
-
- LLSelectedTEGetmatIdAndPermissions func;
- LLUUID mat_id;
- LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue(&func, mat_id);
-
- if (copy)
+ if (!LLFloaterReg::instanceVisible("build"))
{
- LLMaterialEditor::loadFromGLTFMaterial(mat_id);
+ handle_object_edit(); // does update_camera();
}
else
{
- LLMaterialEditor::loadLive();
- }
+ update_camera();
- LLViewerJoystick::getInstance()->moveObjects(true);
- LLViewerJoystick::getInstance()->setNeedsReset(true);
-}
+ LLViewerJoystick::getInstance()->moveObjects(true);
+ LLViewerJoystick::getInstance()->setNeedsReset(true);
+ }
-void handle_object_edit_gltf_material()
-{
- handle_object_edit();
LLMaterialEditor::loadLive();
}