summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-01 19:59:17 +0100
committerGitHub <noreply@github.com>2022-03-01 19:59:17 +0100
commit3f9a6011fea84a7de3308b8bfd7056827b5eae7d (patch)
tree5a34c2093eb596edee478e8684e245afef1ea6b7 /editor
parent3827b4ffdf6fb74d6e2898a169baae4da00dc5da (diff)
parentffa4a0280826cdb5561cde85988182540594f437 (diff)
Merge pull request #58632 from IgorKordiukiewicz/camera-preview-toggle-crash
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);