You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +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.
This commit is contained in:
@@ -3215,6 +3215,8 @@ void Node3DEditorViewport::_toggle_camera_preview(bool p_activate) {
|
|||||||
|
|
||||||
void Node3DEditorViewport::_toggle_cinema_preview(bool p_activate) {
|
void Node3DEditorViewport::_toggle_cinema_preview(bool p_activate) {
|
||||||
previewing_cinema = p_activate;
|
previewing_cinema = p_activate;
|
||||||
|
rotation_control->set_visible(!p_activate);
|
||||||
|
|
||||||
if (!previewing_cinema) {
|
if (!previewing_cinema) {
|
||||||
if (previewing != nullptr) {
|
if (previewing != nullptr) {
|
||||||
previewing->disconnect("tree_exited", callable_mp(this, &Node3DEditorViewport::_preview_exited_scene));
|
previewing->disconnect("tree_exited", callable_mp(this, &Node3DEditorViewport::_preview_exited_scene));
|
||||||
|
|||||||
Reference in New Issue
Block a user