summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-06-20 16:59:48 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-06-20 16:59:48 +0200
commit072e40368e19e0f88ec1fbb61fe463a6fffcca36 (patch)
tree2a5c9383550dc22392bb210d5be570e1baa33fe2 /editor/plugins/spatial_editor_plugin.cpp
parent7a8dcb9a114d742f9bc1e269d738903c00729b8b (diff)
downloadredot-engine-072e40368e19e0f88ec1fbb61fe463a6fffcca36.tar.gz
Fix always true/false values
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index 60f1248ace..c61415fdc7 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/editor/plugins/spatial_editor_plugin.cpp
@@ -1275,13 +1275,13 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
_edit.mode = TRANSFORM_TRANSLATE;
}
- if (cursor.region_select && nav_mode == NAVIGATION_NONE) {
+ if (cursor.region_select) {
cursor.region_end = m->get_position();
surface->update();
return;
}
- if (_edit.mode == TRANSFORM_NONE && nav_mode == NAVIGATION_NONE)
+ if (_edit.mode == TRANSFORM_NONE)
return;
Vector3 ray_pos = _get_ray_pos(m->get_position());