summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-03-11 18:10:00 +0100
committerqarmin <mikrutrafal54@gmail.com>2019-03-11 18:10:00 +0100
commit2e5b6b5bde1e788ebe4a49e142e391937df2f3b2 (patch)
tree4964e9338e16c4411a91b3c9fe28519a39f918dd
parent7b67c5857fd7715774c7a2e07a05ff1fb7304ed1 (diff)
Fix perspective button hide when it should be actually disabled
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index ed11d26f25..a40ec79cf6 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/editor/plugins/spatial_editor_plugin.cpp
@@ -3001,7 +3001,7 @@ void SpatialEditorViewport::set_state(const Dictionary &p_state) {
previewing = Object::cast_to<Camera>(pv);
previewing->connect("tree_exiting", this, "_preview_exited_scene");
VS::get_singleton()->viewport_attach_camera(viewport->get_viewport_rid(), previewing->get_camera()); //replace
- view_menu->hide();
+ view_menu->set_disabled(true);
surface->update();
preview_camera->set_pressed(true);
preview_camera->show();