diff options
| author | Przemysław Gołąb (n-pigeon) | 2017-11-13 22:54:33 +0100 |
|---|---|---|
| committer | Przemysław Gołąb (n-pigeon) | 2017-11-13 22:54:33 +0100 |
| commit | 9a4f6d66896b11db71690e0d33d43a614dbd725b (patch) | |
| tree | 8e4928a23ed191d8e71c620e6886bf49e85f0971 /editor/plugins/spatial_editor_plugin.cpp | |
| parent | 4c000a05f6275ae7b539927d4a2608cb54e34308 (diff) | |
| download | godot-9a4f6d66896b11db71690e0d33d43a614dbd725b.tar.gz godot-9a4f6d66896b11db71690e0d33d43a614dbd725b.tar.zst godot-9a4f6d66896b11db71690e0d33d43a614dbd725b.zip | |
Fix uninitialized bool. Breaks translation in release_debug target.
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<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: |
