1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Hide the rotation gizmo when editor cinematic preview is enabled

Cinematic preview enables the Camera3D preview automatically.

When previewing a Camera3D, the rotation gizmo isn't displayed as
it can't be used.

(cherry picked from commit fa1d853eeb)
This commit is contained in:
Hugo Locurcio
2021-01-18 03:19:05 +01:00
committed by Rémi Verschelde
parent 314dd32d88
commit 250f921522

View File

@@ -3162,6 +3162,8 @@ void SpatialEditorViewport::_toggle_camera_preview(bool p_activate) {
void SpatialEditorViewport::_toggle_cinema_preview(bool p_activate) {
previewing_cinema = p_activate;
rotation_control->set_visible(!p_activate);
if (!previewing_cinema) {
if (previewing != NULL)
previewing->disconnect("tree_exited", this, "_preview_exited_scene");