1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Allow dragging editable children

But not allow dropping inside the scene tree editor.
This commit is contained in:
Haoyu Qiu
2023-11-01 21:56:14 +08:00
parent 6afd320984
commit 3f00d713b8
2 changed files with 19 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ class SceneTreeEditor : public Control {
void _set_item_custom_color(TreeItem *p_item, Color p_color);
void _selection_changed();
Node *get_scene_node();
Node *get_scene_node() const;
Variant get_drag_data_fw(const Point2 &p_point, Control *p_from);
bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const;