Ver Fonte

Blender's rotation does allow wrapping the original implementation of this behaviour in Godot disabled it, this commit brings it in line with Blender's functionality.

viksl há 1 ano atrás
pai
commit
df71600d2b
1 ficheiros alterados com 1 adições e 5 exclusões
  1. 1 5
      editor/plugins/node_3d_editor_plugin.cpp

+ 1 - 5
editor/plugins/node_3d_editor_plugin.cpp

@@ -1603,11 +1603,7 @@ void Node3DEditorViewport::input(const Ref<InputEvent> &p_event) {
 	Ref<InputEventMouseMotion> m = p_event;
 	Ref<InputEventMouseMotion> m = p_event;
 
 
 	if (m.is_valid()) {
 	if (m.is_valid()) {
-		if (_edit.mode == TRANSFORM_ROTATE) {
-			_edit.mouse_pos = m->get_position(); // rotate should not wrap
-		} else {
-			_edit.mouse_pos += _get_warped_mouse_motion(p_event);
-		}
+		_edit.mouse_pos += _get_warped_mouse_motion(p_event);
 		update_transform(_get_key_modifier(m) == Key::SHIFT);
 		update_transform(_get_key_modifier(m) == Key::SHIFT);
 	}
 	}
 }
 }