Merge pull request #26927 from qarmin/fix_perspective_button_hide
Fix perspective button hide when it actually should be disabled
This commit is contained in:
commit
a71d8b561d
1 changed files with 1 additions and 1 deletions
|
@ -3010,7 +3010,7 @@ void SpatialEditorViewport::set_state(const Dictionary &p_state) {
|
||||||
previewing = Object::cast_to<Camera>(pv);
|
previewing = Object::cast_to<Camera>(pv);
|
||||||
previewing->connect("tree_exiting", this, "_preview_exited_scene");
|
previewing->connect("tree_exiting", this, "_preview_exited_scene");
|
||||||
VS::get_singleton()->viewport_attach_camera(viewport->get_viewport_rid(), previewing->get_camera()); //replace
|
VS::get_singleton()->viewport_attach_camera(viewport->get_viewport_rid(), previewing->get_camera()); //replace
|
||||||
view_menu->hide();
|
view_menu->set_disabled(true);
|
||||||
surface->update();
|
surface->update();
|
||||||
preview_camera->set_pressed(true);
|
preview_camera->set_pressed(true);
|
||||||
preview_camera->show();
|
preview_camera->show();
|
||||||
|
|
Loading…
Reference in a new issue