浏览代码

Merge pull request #11846 from gabrielformiga/fix-ik-bone-drag

Fix IK Bone Drag on Viewport
Rémi Verschelde 8 年之前
父节点
当前提交
1cb4fc1510
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/canvas_item_editor_plugin.cpp

+ 1 - 1
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 {