1
0
Fork 0
Commit Graph

18911 Commits

Author SHA1 Message Date
Thaddeus Crews b3c7bebfb7
Merge pull request #108122 from Kazuo256/fix-107059
Properly show detach script button when script is added via inspector
2025-07-18 11:05:14 -05:00
Thaddeus Crews d98a2d2e5e
Merge pull request #108679 from Alex2782/fix_cancel_save_dialog
Cancel save dialog on editor exit
2025-07-18 11:05:09 -05:00
Thaddeus Crews 74ee47e31e
Merge pull request #108645 from Changryy/check-resource-before-load
Fix error when dragging non-resource file
2025-07-18 11:05:07 -05:00
Alexander Hartmann 4e25e4406e Fix: Canceling save dialog on editor exit 2025-07-17 19:35:10 +02: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
Pāvels Nadtočajevs eac8e9d1cd
[SpriteFramesEditor] Decompress texture before auto slicing sprite sheet. 2025-07-17 10:51:44 +03:00
Thaddeus Crews fc1e61ad94
Merge pull request #108312 from KoBeWi/deselect_deselected_just_to_be_sure
Fix filtered out nodes not getting deselected
2025-07-16 11:27:53 -05:00
Thaddeus Crews 129143355f
Merge pull request #108463 from kitbdev/fix-text-theme-issues
Fix some Text Editor theme issues and clean up
2025-07-16 11:27:52 -05:00
Thaddeus Crews 12c8c140a4
Merge pull request #108642 from Changryy/auto-load-naming
Fix new autoload scripts using file name instead of user defined name
2025-07-16 11:27:52 -05:00
Lindo 529a5a3512 Fix error when dragging non-resource file 2025-07-16 11:23:09 +02:00
Thaddeus Crews 0f23b7b420
Merge pull request #108632 from aryan-11825114/add-min-scale-to-shader-list
Add minimum scale to shader list
2025-07-15 16:58:36 -05:00
Lindo 90327dcbec Fix new autoload scripts using file name instead of user defined name 2025-07-15 20:27:31 +02:00
kit 7e9e3b767c Fix some Text Editor theme issues and clean up 2025-07-15 13:43:30 -04:00
Thaddeus Crews 20606b1d4d
Merge pull request #108477 from KoBeWi/grid_burn-in
Fix lingering grid from TileMapLayer editor
2025-07-15 08:04:28 -05:00
Thaddeus Crews af4e96b1b3
Merge pull request #108604 from deralmas/fitting-shenanigans
Wayland: Workaround tooltip issues
2025-07-15 08:04:27 -05:00
Thaddeus Crews ff15cb479e
Merge pull request #108494 from precup/fix-sphere-gizmo-handle
Fix sphere gizmo handle position
2025-07-15 08:04:24 -05:00
Dery Almas cf48f5a102 Disable tooltip fitting if FEATURE_SELF_FITTING_WINDOWS is available 2025-07-15 11:44:56 +02:00
aryan-11825114 89a467d586 Add minimum scale to shader list 2025-07-15 15:01:52 +05:30
Stuart Carnie a3d3306ed3 Editor: Fix crash when specifying `--debug-server`
The dock is not in the tree when starting the debug server via the CLI
2025-07-15 07:31:31 +10:00
Mike Precup b9beb852e6 Fix sphere gizmo handle position 2025-07-14 10:19:01 -07:00
Thaddeus Crews d5cb0f948e
Merge pull request #108478 from KoBeWi/phantom_paths
Fix export path "leaking" between presets
2025-07-14 10:30:42 -05:00
Thaddeus Crews 2d1453c1e8
Merge pull request #108436 from AeioMuch/scroll_scene_tree_if_move_item_with_keys
Scroll scene tree dock when moving item(s) with keys
2025-07-14 10:30:41 -05:00
Thaddeus Crews 1713a8ddc8
Merge pull request #108533 from YeldhamDev/get_owned
Fix unwanted resource duplication in the theme editor
2025-07-14 10:30:35 -05:00
Thaddeus Crews 7e0b813abd
Merge pull request #108523 from WhalesState/editor-files
Move last four 3D files to 3D folder and move physics gizmos to their own physics folder.
2025-07-14 10:30:30 -05:00
Thaddeus Crews f0b4ebb7ea
Merge pull request #108555 from beicause/fix-crash-editing-resource-and-reloading-scene
Fix crash when editing some resources and reloading scene
2025-07-14 10:30:29 -05:00
LuoZhihao 6ba1a1e758 Fix crash when editing some resources and reloading scene 2025-07-13 01:16:20 +08:00
Michael Alexsander e924d2b565
Fix unwanted resource duplication in the theme editor 2025-07-12 12:39:55 -03:00
Mounir Tohami 5be915a12c Move remaining 3D files to 3D folder and move physics gizmos to their own physics folder. 2025-07-11 18:46:13 +03:00
AeioMuch 5a38042b2d Scroll scene tree when moving item with keys 2025-07-10 21:52:50 +02:00
Thaddeus Crews 81f65cf796
Merge pull request #102953 from Giganzo/checkable-click
Fix Inspector checkable button sizing
2025-07-10 11:39:24 -05:00
Thaddeus Crews ed02254b2c
Merge pull request #108440 from kitbdev/fix-colorpicker-wrong-line
Fix ScriptEditor inline color wrong line number
2025-07-10 11:39:20 -05:00
Thaddeus Crews af128c5570
Merge pull request #107794 from bruvzg/gl_inv_bake
[macOS] Selectively bake specific shader variants for MoltenVK.
2025-07-10 11:39:18 -05:00
bruvzg 7cee0327b2
[Code Editor] Fix "Pick Color" menu option replacing multiple color items. 2025-07-10 17:24:33 +03:00
kobewi 4753ca4219 Fix export path "leaking" between presets 2025-07-10 15:18:34 +02:00
kobewi b073fba3f7 Fix lingering grid from TileMapLayer editor 2025-07-10 14:50:11 +02:00
kit 927208a92e Fix ScriptEditor line number in color objects 2025-07-09 16:18:57 -04:00
Giganzo 7c77df3c69 Fix Inspector checkable button sizing 2025-07-09 19:47:11 +02:00
Pāvels Nadtočajevs a8873727ac
[macOS] Selectively bake specific shader variants for MoltenVK. 2025-07-09 20:09:56 +03:00
Thaddeus Crews 22721a8ca7
Merge pull request #108368 from aaronfranke/editor-particles-2d-3d
Move 2D and 3D particle editors to the 2D and 3D folders
2025-07-09 11:33:16 -05:00
Thaddeus Crews e5718ac819
Merge pull request #102317 from ryevdokimov/gizmo-commit-handle-spam-fix
Do not commit gizmo handles if no changes were made
2025-07-09 11:33:15 -05:00
Thaddeus Crews 31d253d827
Merge pull request #108396 from timothyqiu/editor-title
Fix main editor title after changing language
2025-07-09 11:33:12 -05:00
Thaddeus Crews e748514112
Merge pull request #105835 from bruvzg/edited_scene_direction
Improve edited scene layout direction detection.
2025-07-09 11:33:11 -05:00
Thaddeus Crews 9123ccb985
Merge pull request #108418 from KoBeWi/annoying_error
Improve error when `update_doc()` fails
2025-07-09 11:33:10 -05:00
Robert Yevdokimov 060f9b7a16 Do not commit gizmo handles if no changes were made 2025-07-09 14:31:02 +04:00
kobewi c3b4c823da Improve error when update_doc() fails 2025-07-08 22:52:23 +02:00
kit 9184256ae4 Fix ScriptEditor inline colors float handling 2025-07-08 11:55:11 -04:00
Haoyu Qiu 4f6b9af42a Fix main editor title after changing language 2025-07-08 10:28:08 +08:00
Thaddeus Crews bb4763e255
Merge pull request #108377 from timothyqiu/inspector-plugin-full
Fix can't remove inspector plugins after reaching max count
2025-07-07 10:08:02 -05:00
Thaddeus Crews 5699180262
Merge pull request #108249 from Nikitf777/polygon-2d-editor-fix-selecting-wrong-point
Fix selecting wrong vertices in the Polygon2D editor when adding a polygon
2025-07-07 10:08:01 -05:00
Haoyu Qiu bbd7c9b5f2 Fix can't remove inspector plugins after reaching max count 2025-07-07 20:52:54 +08:00