Преглед на файлове

Fix uninitialized bool. Breaks translation in release_debug target.

Przemysław Gołąb (n-pigeon) преди 7 години
родител
ревизия
9a4f6d6689
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      editor/plugins/spatial_editor_plugin.cpp

+ 1 - 2
editor/plugins/spatial_editor_plugin.cpp

@@ -1255,7 +1255,6 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &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<InputEvent> &p_event) {
 
 						Vector3 motion_mask;
 						Plane plane;
-						bool plane_mv;
+						bool plane_mv = false;
 
 						switch (_edit.plane) {
 							case TRANSFORM_VIEW: