diff options
| author | Rémi Verschelde | 2017-10-09 12:30:56 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-09 12:30:56 +0200 |
| commit | 1cb4fc1510586d94b8b26801df7fe618628949af (patch) | |
| tree | 86b81c639ecbceaaba3de4b909d5d9ea73dbde00 | |
| parent | 3091cfcebdb27fc4b1ae1809437c3b5b5d9a8f8e (diff) | |
| parent | f931093812b40b2c38f5b320c4b31ce7a7d30dd9 (diff) | |
| download | godot-1cb4fc1510586d94b8b26801df7fe618628949af.tar.gz godot-1cb4fc1510586d94b8b26801df7fe618628949af.tar.zst godot-1cb4fc1510586d94b8b26801df7fe618628949af.zip | |
Merge pull request #11846 from gabrielformiga/fix-ik-bone-drag
Fix IK Bone Drag on Viewport
Diffstat (limited to '')
| -rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 3fc251d09..4b216d63f 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -993,7 +993,7 @@ void CanvasItemEditor::_prepare_drag(const Point2 &p_click_pos) { se->pre_drag_rect = canvas_item->get_item_rect(); } - if (selection.size() == 1 && Object::cast_to<Node2D>(selection[0])) { + if (selection.size() == 1 && Object::cast_to<Node2D>(selection[0]) && bone_ik_list.size() == 0) { drag = DRAG_NODE_2D; drag_point_from = Object::cast_to<Node2D>(selection[0])->get_global_position(); } else { |
