You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix IK Bone Drag on Viewport
This commit is contained in:
@@ -992,7 +992,7 @@ void CanvasItemEditor::_prepare_drag(const Point2 &p_click_pos) {
|
|||||||
se->pre_drag_xform = canvas_item->get_global_transform_with_canvas();
|
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 = DRAG_NODE_2D;
|
||||||
drag_point_from = Object::cast_to<Node2D>(selection[0])->get_global_position();
|
drag_point_from = Object::cast_to<Node2D>(selection[0])->get_global_position();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user