fixed toggelling snap mode while transforming
This commit is contained in:
parent
86d6a72c97
commit
05446e8b53
|
@ -1021,7 +1021,7 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
_edit.mouse_pos = b->get_position();
|
_edit.mouse_pos = b->get_position();
|
||||||
_edit.snap = false;
|
_edit.snap = spatial_editor->is_snap_enabled();
|
||||||
_edit.mode = TRANSFORM_NONE;
|
_edit.mode = TRANSFORM_NONE;
|
||||||
|
|
||||||
//gizmo has priority over everything
|
//gizmo has priority over everything
|
||||||
|
@ -1772,7 +1772,7 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
||||||
|
|
||||||
if (ED_IS_SHORTCUT("spatial_editor/snap", p_event)) {
|
if (ED_IS_SHORTCUT("spatial_editor/snap", p_event)) {
|
||||||
if (_edit.mode != TRANSFORM_NONE) {
|
if (_edit.mode != TRANSFORM_NONE) {
|
||||||
_edit.snap = true;
|
_edit.snap = !_edit.snap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ED_IS_SHORTCUT("spatial_editor/bottom_view", p_event)) {
|
if (ED_IS_SHORTCUT("spatial_editor/bottom_view", p_event)) {
|
||||||
|
|
Loading…
Reference in New Issue