diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-03-11 18:10:00 +0100 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-03-11 18:10:00 +0100 |
commit | 2e5b6b5bde1e788ebe4a49e142e391937df2f3b2 (patch) | |
tree | 4964e9338e16c4411a91b3c9fe28519a39f918dd /editor | |
parent | 7b67c5857fd7715774c7a2e07a05ff1fb7304ed1 (diff) |
Fix perspective button hide when it should be actually disabled
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
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(); |