summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-13 23:11:04 +0100
committerGitHub <noreply@github.com>2017-11-13 23:11:04 +0100
commitc4f9820c2ff00653ab1fdfda977fbc01e75f1138 (patch)
tree05145e0c0441a8166490dcf198a006eccb91d968
parentf3d812e3a0549e1235184713c8ebe0c6b26c9fde (diff)
parent9a4f6d66896b11db71690e0d33d43a614dbd725b (diff)
Merge pull request #12909 from n-pigeon/tra_gizmo_fix_2
Fix uninitialized bool. Breaks translation in release_debug target.
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index 75c6961521..b87084e392 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/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: