From 9a4f6d66896b11db71690e0d33d43a614dbd725b Mon Sep 17 00:00:00 2001 From: Przemysław Gołąb (n-pigeon) Date: Mon, 13 Nov 2017 22:54:33 +0100 Subject: Fix uninitialized bool. Breaks translation in release_debug target. --- editor/plugins/spatial_editor_plugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editor/plugins/spatial_editor_plugin.cpp') diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 75c696152..b87084e39 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -1255,7 +1255,6 @@ void SpatialEditorViewport::_sinput(const Ref &p_event) { Vector3 motion_mask; Plane plane; - bool plane_mv; switch (_edit.plane) { case TRANSFORM_VIEW: @@ -1376,7 +1375,7 @@ void SpatialEditorViewport::_sinput(const Ref &p_event) { Vector3 motion_mask; Plane plane; - bool plane_mv; + bool plane_mv = false; switch (_edit.plane) { case TRANSFORM_VIEW: -- cgit v1.2.3-70-g09d2