godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.12k stars 69 forks source link

Make drag-and-dropping into an empty space in the Scene tree dock reparent to the scene's root node #8825

Open AntohaRDNS opened 8 months ago

AntohaRDNS commented 8 months ago

Describe the project you are working on

3D Fighting Game

Describe the problem or limitation you are having in your project

When it is necessary to move a node under the root of the scene - the user is forced to point the root node exactly during dragging

CURRENT

DRAG & DROP FROM PROJECT TO SCENE:

free_drop_from_project_view_old

DRAG & DROP FROM SCENE TO SCENE:

free_drop_from_scene_old

Describe the feature / enhancement and how it helps to overcome the problem or limitation

I suggest that to quickly reparent a node under the root of the scene , throw it into the free area under the nodes of the scene

NEW

DRAG & DROP FROM PROJECT TO SCENE:

free_drop_from_project_view_new

DRAG & DROP FROM SCENE TO SCENE:

free_drop_from_scene_new

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

I suggest that to quickly reparent a node under the root of the scene , throw it into the free area under the nodes of the scene

If this enhancement will not be used often, can it be worked around with a few lines of script?

I don't think so

Is there a reason why this should be core and not an add-on in the asset library?

This feature is common for many game engines & media editors.

AThousandShips commented 8 months ago

Unsure but this might be unintended, could be due to how dropping on the empty part of the tree works, need to investigate but might be a bug

Calinou commented 8 months ago

To me, this makes sense to implement either way, regardless of whether it's a bug or missing feature. I've noticed this a while ago too.