From ffa4a0280826cdb5561cde85988182540594f437 Mon Sep 17 00:00:00 2001 From: Igor Kordiukiewicz Date: Mon, 28 Feb 2022 15:47:35 +0100 Subject: Fixes camera preview toggle in additional editor viewports not disappearing corectly causing a crash --- editor/plugins/node_3d_editor_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') 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); -- cgit v1.2.3