summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel <gabriel.formiga@gmail.com>2017-10-04 21:58:13 -0300
committerGabriel <gabriel.formiga@gmail.com>2017-10-04 21:58:13 -0300
commitf931093812b40b2c38f5b320c4b31ce7a7d30dd9 (patch)
treec9914e27df35d132ad19f69778a8829c11f81e24
parent2e6f2ed0325c65c2b623532bb3b7e191064fe937 (diff)
Fix IK Bone Drag on Viewport
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
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 1aa24c8172..1d9b6d38fa 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -992,7 +992,7 @@ void CanvasItemEditor::_prepare_drag(const Point2 &p_click_pos) {
se->pre_drag_xform = canvas_item->get_global_transform_with_canvas();
}
- 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 {