1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
Rémi Verschelde
d09a3d83ff Merge pull request #113574 from YeldhamDev/take_the_hint
Enable scroll hints for several parts of the editor
2025-12-09 19:32:11 +01:00
Michael Alexsander
f187b8b2bf Enable scroll hints for several parts of the editor 2025-12-09 10:55:26 -03:00
Logan Detrick
17c7a3b817 Remove unused private variables in godot/editor 2025-12-07 02:55:08 -08:00
Thaddeus Crews
dec0b22f7d Merge pull request #64487 from Rindbee/fix-instantiated-scene-duplicate
Fix resource shared when duplicating an instanced scene
2025-12-02 11:52:13 -06:00
Rindbee
e0532a711a Fix resource shared when duplicating an instanced scene
For resources with `resource_local_to_scene` enabled in the sub-scene,
the resource is already set when the sub-scene is instantiated, so does
not need to be set again. Just needs to update the property of the
resource according to the value in the main scene.
2025-12-02 20:45:54 +08:00
Haoyu Qiu
a146639824 Scene Dock: Simplify Filter Nodes related UI 2025-11-08 13:09:47 +08:00
Mounir Tohami
2182dedcc6 Fix switching back to local SceneTree. 2025-10-02 11:46:47 +03:00
kobewi
97b398cba1 Rework editor docks 2025-09-29 17:30:41 +02:00
kobewi
27fb2181cd Track last selection using ObjectID 2025-08-20 14:49:50 +02:00
Aaron Franke
d492b665c3 Fix crash in SceneTreeDock when closing a scene with a selected node 2025-07-22 14:40:26 -07:00
Wilson Kazuo Mizutani
b400633dc2 Show detach script button when added via inspector
Fixes #107059.

The SceneTreeDock was not tracking script changes in selected nodes in any capacity as far as I could assess. To do
that, my solution essentially connects the "script_changed" signal from selected nodes to
"SceneTreeDock::_update_script_button()" whenever the selection changes. It actually queues the update to make sure it
happens only once no matter how many nodes are selected.

However, only connecting that signal would leave previously selected nodes with a signal connection that should no
longer exist. To properly disconnect previously selected nodes, we have to store the list of currently selected nodes so
we can disconnect them when the selection changes.

The commit also includes some improvements to the SceneTreeDock class:

1. Remove unnecessary initialization in SceneTreeDock

This field is already initialized in the line that declares it. As such, initializing it on the constructor as well as
is redundant.

2. Queue script button updates in scene tree dock

Since we now have the option to defer the script button update and make sure it only runs once per frame, it's always
best to use the queued version of the update from a performance perspective. I'm not entirely sure if there could be any
unexpected side effects but it is a minor self-contained UI update, so it's likely a relatively safe change.

The replacement includes the bindings since it is a requirement for the other replacements in the class to work
(UndoRedo needs their method names registered in the class DB). It should be OK to remove the old non-queued bindings
too even though they are accessible in the public API because it is a "unofficial" method starting with an underscore.
2025-07-17 13:09:50 -03:00
A Thousand Ships
f11aff3841 Editor: Restructure editor code
Moving various editor files into sub folders to reduce clutter
2025-07-04 18:18:22 +02:00