Add threshold to dragging nodes with select to prevent accidental drags

This commit is contained in:
fox
2021-06-04 11:39:46 -04:00
parent 766c6dbb24
commit 00a4ee5cf3
4 changed files with 36 additions and 15 deletions
+1
View File
@@ -387,6 +387,7 @@ private:
Vector3 orig_gizmo_pos;
int edited_gizmo = 0;
Point2 mouse_pos;
Point2 original_mouse_pos;
bool snap = false;
Ref<EditorNode3DGizmo> gizmo;
int gizmo_handle = 0;