From 5f96e607fb7e4f9d18737850f04671b6a9983a76 Mon Sep 17 00:00:00 2001 From: Gordon MacPherson Date: Tue, 17 Aug 2021 00:37:27 +0100 Subject: [PATCH] Fix editor grid perspective undefined behaviour Initialise the enum value --- editor/plugins/node_3d_editor_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/node_3d_editor_plugin.h b/editor/plugins/node_3d_editor_plugin.h index d29c1efabbb..868b834993b 100644 --- a/editor/plugins/node_3d_editor_plugin.h +++ b/editor/plugins/node_3d_editor_plugin.h @@ -532,7 +532,7 @@ private: bool grid_enable[3]; //should be always visible if true bool grid_enabled; bool grid_init_draw = false; - Camera3D::Projection grid_camera_last_update_perspective; + Camera3D::Projection grid_camera_last_update_perspective = Camera3D::PROJECTION_PERSPECTIVE; Vector3 grid_camera_last_update_position = Vector3(); Ref move_gizmo[3], move_plane_gizmo[3], rotate_gizmo[4], scale_gizmo[3], scale_plane_gizmo[3];