Commit Graph

19153 Commits

Author SHA1 Message Date
Thaddeus Crews
fe778d2745 Merge pull request #97838 from CycloneRing/get_open_scenes_roots
EditorInterface: Add `get_open_scene_roots` to retrieve all opened scenes root nodes
2025-03-11 09:34:40 -05:00
Kiro
5a8874ea2c improve capsule gizmo performance 2025-03-11 12:08:18 +01:00
Thaddeus Crews
78c9f8ddd9 Merge pull request #103906 from adamscott/revert-builtin-gui-license-notice
Revert "Add built-in GUI to display license notices"
2025-03-10 21:05:58 -05:00
Thaddeus Crews
899d3376ad Merge pull request #103044 from KoBeWi/ultimate_upgrade_tool_will_upgrade_your_life_too
Replace UID and Surface upgrade tools with universal one
2025-03-10 21:05:56 -05:00
Thaddeus Crews
ff674de65e Merge pull request #103903 from kiroxas/improveCylinderGizmo
Improve cylinder gizmo performance
2025-03-10 21:05:45 -05:00
Thaddeus Crews
13907ec474 Merge pull request #103910 from kiroxas/ImproveSphereGizmoPerformance
Improve Sphere gizmo performance
2025-03-10 21:05:44 -05:00
Thaddeus Crews
590fa90722 Merge pull request #100339 from syntaxerror247/touch-actions-panel
Add a `TouchActionsPanel` to Android Editor
2025-03-10 21:05:43 -05:00
Kiro
8eaab62930 Improve cylinder gizmo performance 2025-03-10 20:14:45 +01:00
Kiro
4915f916a4 Improve sphere gizmo performance 2025-03-10 20:12:43 +01:00
kobewi
a3a1cf0a7f Replace UID and Surface upgrade tools with universal one 2025-03-10 16:41:02 +01:00
Thaddeus Crews
b40e6a55ac Merge pull request #101884 from aaronp64/camera_gizmo_fov_fix
Fix `Camera3D` gizmo representation to accurately reflect FOV
2025-03-10 10:01:13 -05:00
Thaddeus Crews
7d46e7d011 Merge pull request #98379 from timothyqiu/alien-thread
Translate main thread name in the editor instead of running project
2025-03-10 10:01:11 -05:00
Adam Scott
1d325847f3 Revert "Add built-in GUI to display license notices"
This reverts commit daa6198925.
2025-03-10 10:33:12 -04:00
A Thousand Ships
d9721954e6 [Core] Use Vector for MethodInfo::arguments 2025-03-10 13:57:53 +01:00
A Thousand Ships
331a43a9d8 Add String::remove_char(s) methods for performance and convenience 2025-03-10 13:19:28 +01:00
kobewi
68d983395f Enable changing editor language without restart 2025-03-10 13:02:50 +01:00
Pāvels Nadtočajevs
6d698cf185 [macOS] Fix editor loading crash on native menu click. 2025-03-10 08:41:17 +02:00
Haoyu Qiu
82a0290871 Add auto translate mode for items in PopupMenu and OptionButton 2025-03-09 23:50:11 +08:00
Aaron Franke
c7649f4f9c Fix stuck editor cameras and fix 3D error spam for non-finite transforms 2025-03-08 23:10:30 -08:00
Haoyu Qiu
f329439249 ScriptEditor: Disable auto translation of the filename label 2025-03-09 10:01:26 +08:00
dugramen
672b2d4f22 Inspect SceneTree node when anything is dragged over 2025-03-08 18:49:55 -05:00
A Thousand Ships
466590d0ec Use get_slicec instead of get_slice for single character splitters 2025-03-08 20:36:37 +01:00
Thomas ten Cate
93d342b745 Allow dragging items onto array property editor Add Element button
Instead of having to first click the button, then drag the item into the
new slot, this allows just dragging the item onto the button directly.
The button is highlighted as a valid drop target to signal this.
2025-03-08 19:28:05 +01:00
Thomas ten Cate
b557840af5 Allow dragging resources (not just files) onto array property editor
The most common scenario is dragging a file from the filesystem dock,
which drags it as type "file", not "resource". This already worked. This
change also makes it possible to drag a resource from another property
editor.
2025-03-08 19:28:05 +01:00
Thomas ten Cate
11b3900a0e Allow dragging custom node types onto array property editor
For example, an Array[MyScript] property now accepts any node with the
script MyScript on it. This works for Node and NodePath arrays alike,
and also with the @export_node_path annotation.
2025-03-08 19:28:05 +01:00
Thomas ten Cate
0c46089d1b Allow dragging custom resources onto array property editor
This duplicates some of the logic in EditorResourcePicker, but that's
unavoidable: EditorResourcePicker works on a single, loaded resource,
whereas we'd like this to be efficient and not need to load all
(potentially many) dragged resources. Instead, we use the
EditorFileSystem cache to get the information we need.

Note that EditorResourcePicker also supports some automatic conversions,
such as from Shader to ShaderMaterial. This change does not attempt to
make that work for arrays as well.
2025-03-08 19:27:51 +01:00
Thomas ten Cate
cd8eaaa07b Fix resource property editor incorrectly accepting script files
See discussion on #102534. Before this fix, it was possible to drag a
file `CustomResource.gd` with `class_name CustomResource` onto a
property of type `CustomResource`. Of course, the intention is that only
`Resource`s with the `CustomResource` script attached are accepted.

(Actually accepting the script, but creating a resource from it
automatically, is left as a future improvement.)
2025-03-08 19:24:33 +01:00
Thomas ten Cate
36c1b019fa Highlight Node and NodePath properties as valid drop targets
This was already done for Resource properties; this just makes things
consistent.
2025-03-08 19:24:33 +01:00
Pāvels Nadtočajevs
9363433458 Save queued ProjectSettings changes immediately when settings dialog is closed. 2025-03-08 16:26:52 +02:00
arkology
186d68740c FindReplaceBar: Fix "Replace (All)" buttons repositioning, improve "Hide" button visual feedback
"Replace" and "Replace All" buttons now do not change their position depending on the availability of search results.
Additional changes:
- `VBoxContainer *vbc_lineedit` declaration has been removed from the header because it is not used outside the `FindReplaceBar` constructor.
- `hide_button` was changed from `TextureButton` to `Button` for consistency - this allows to visually see the feedback when hovering and pressing and also not set its icon 3 times instead of 1.
2025-03-08 14:02:29 +03:00
Aaron Franke
4f1bcbd97f Rename internal view_menu in 3D editor code 2025-03-08 02:06:56 -08:00
Ivan Shakhov
45889fac8b Add dynamic exec flags update when exec path is set for an external text editor.
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-03-08 06:36:58 +01:00
Thaddeus Crews
324512e11c Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
Thaddeus Crews
67d4a245d8 Merge pull request #103267 from YeldhamDev/reality_got_too_extended
Allow to compile the engine without XR support
2025-03-07 15:12:54 -06:00
Thaddeus Crews
3d9b37911d Merge pull request #103011 from Repiteo/style/svgo-newline
Style: Ensure svgs have trailing newlines
2025-03-07 15:12:41 -06:00
Thaddeus Crews
3c43508ed7 Merge pull request #102427 from AThousandShips/fix_substr
Clean up some uses of `String::substr`
2025-03-07 15:12:33 -06:00
Thaddeus Crews
0c6efe572e Merge pull request #79599 from Calinou/add-license-notices-gui
Add built-in GUI to display license notices
2025-03-07 15:12:29 -06:00
Thaddeus Crews
1237536364 Merge pull request #102630 from KoBeWi/what_the_loop
Improve `_is_drop_valid()` code in EditorPropertyArray
2025-03-07 15:12:28 -06:00
Thaddeus Crews
c937b6d180 Merge pull request #102419 from Ivorforce/std-size
Use `std::size` instead of `sizeof(a) / sizeof(a[0])` pattern throughout the codebase.
2025-03-07 15:12:25 -06:00
Thaddeus Crews
30221571f2 Merge pull request #99094 from KoBeWi/preload_dct2slt82u81fo8dkxkak5o57
Drop preload Resources as UID
2025-03-07 15:12:24 -06:00
Thaddeus Crews
76952ba0a1 Merge pull request #90034 from KoBeWi/only_save_when_save
Don't save unnecessarily with `save_before_running`
2025-03-07 15:12:22 -06:00
Thaddeus Crews
d9125ebebe Merge pull request #101293 from Ivorforce/string-to-pointer-conversion
Remove implicit conversions from `String`, `Char16String` and `CharString` to data pointers.
2025-03-07 15:12:12 -06:00
aaronp64
7e4d635c2f Fix Camera3D gizmo representation to accurately reflect FOV
Updated gizmo drawing to keep depth proportional to width or height based on whether FOV is horizontal or vertical.
2025-03-07 14:33:54 -05:00
kobewi
c1b08dda36 Don't save unnecessarily with save_before_running 2025-03-07 19:14:50 +01:00
Thaddeus Crews
6b4fda04c9 Merge pull request #89442 from KoBeWi/internal_duplicaten't
Don't duplicate internal nodes
2025-03-07 12:06:36 -06:00
Thaddeus Crews
c2311a820c Merge pull request #103270 from Giganzo/item-list-cursor
Fix invisible ItemList cursor in editor theme
2025-03-07 12:06:30 -06:00
Thaddeus Crews
cf68b5f6eb Merge pull request #103670 from dugramen/inspector-section-hover
Redraw inspector section when cursor enters and exits header to update hover state
2025-03-07 12:06:29 -06:00
Thaddeus Crews
c159adb209 Merge pull request #103756 from timothyqiu/vs-translations
Fix some i18n issues in visual shader editor
2025-03-07 12:06:26 -06:00
Thaddeus Crews
e92b0c932e Merge pull request #103649 from dugramen/inspector-usage-array-popup-position
Fix popup location for `PROPERTY_USAGE_ARRAY` inspector items
2025-03-07 12:06:25 -06:00
AeioMuch
8d39e4b14e Fix ownership when pasting non root with child nodes 2025-03-07 16:11:48 +01:00