You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Prevent dragging from SceneTree buttons
This commit is contained in:
@@ -902,6 +902,10 @@ Variant SceneTreeEditor::get_drag_data_fw(const Point2 &p_point, Control *p_from
|
||||
return Variant(); //not editable tree
|
||||
}
|
||||
|
||||
if (tree->get_button_id_at_position(p_point) != -1) {
|
||||
return Variant(); //dragging from button
|
||||
}
|
||||
|
||||
Vector<Node *> selected;
|
||||
Vector<Ref<Texture2D>> icons;
|
||||
TreeItem *next = tree->get_next_selected(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user