瀏覽代碼

Merge pull request #12909 from n-pigeon/tra_gizmo_fix_2

Fix uninitialized bool. Breaks translation in release_debug target.
Rémi Verschelde 7 年之前
父節點
當前提交
c4f9820c2f
共有 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: