summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorIgor Kordiukiewicz <igorkordiukiewicz@gmail.com>2022-02-28 15:47:35 +0100
committerIgor Kordiukiewicz <igorkordiukiewicz@gmail.com>2022-02-28 15:47:35 +0100
commitffa4a0280826cdb5561cde85988182540594f437 (patch)
tree60d559f35322ca0f548c8b360d431b68c8d24429 /editor
parent345b4bb86ae9b3e5d3cee6078a7e452b7c933200 (diff)
Fixes camera preview toggle in additional editor viewports not disappearing corectly causing a crash
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/node_3d_editor_plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.h b/editor/plugins/node_3d_editor_plugin.h
index 48423d1c83..5c0bfab34e 100644
--- a/editor/plugins/node_3d_editor_plugin.h
+++ b/editor/plugins/node_3d_editor_plugin.h
@@ -378,7 +378,7 @@ private:
Node3DEditor *spatial_editor;
Camera3D *previewing;
- Camera3D *preview;
+ Camera3D *preview = nullptr;
bool previewing_cinema;
bool _is_node_locked(const Node *p_node);