Commit Graph

17118 Commits

Author SHA1 Message Date
Rémi Verschelde
b11bb1aa97
Merge pull request #99319 from TokageItLab/fix-fps-inspector
Fix key is deselected by changing key time in KeyEdit in FPS mode
2024-11-20 17:03:12 +01:00
Markus Sauermann
bc5e2f9b96 Revert "Fix InputEvent device id clash" and add a compatibility function
This reverts commit 916d480686.

Revert "Fix InputEvent crash when opening project"
This reverts commit abb9c0f171.

Introduce a compatibility function for projects affected by the
device id clash reversal

Since the reverted PR introduced changes in the project.godot
file, it seems prudent to introduce a compatibility function for
such affected projects.
2024-11-20 09:18:55 +01:00
Thaddeus Crews
a0cd8f187a
Merge pull request #99391 from Giganzo/export-debug
Add persistent states for export with debug, as patch on editor restarts
2024-11-19 15:20:28 -06:00
Thaddeus Crews
918faec239
Merge pull request #98297 from Calinou/editor-tweak-lightmapgi-no-meshes-to-bake-error-dialog
Improve "No meshes to bake" LightmapGI error dialog in the editor
2024-11-19 15:20:12 -06:00
Thaddeus Crews
e4dbba94d9
Merge pull request #99324 from TokageItLab/fix-fpe-spinner
Fix spinner in AnimationTrackEdit in FPS mode
2024-11-19 15:20:10 -06:00
Thaddeus Crews
63a408f320
Merge pull request #99363 from passivestar/fix-marker-drawing
Fix issues with animation markers drawing
2024-11-19 15:20:04 -06:00
Illauriel
5de38f7fd3 Add persistent folding to Animation Library Editor 2024-11-19 20:01:30 +01:00
passivestar
c4a78d09e5 Fix issues with animation markers drawing 2024-11-19 19:45:36 +04:00
passivestar
0ff5d5fd04 Add theme type variations for secondary Trees and ItemLists 2024-11-19 18:33:30 +04:00
passivestar
6ba86c3852 Disable the debugger thread selector when there's nothing to select 2024-11-19 17:11:43 +04:00
Giganzo
61cf0253ce Fix toast spam about child of container position 2024-11-19 11:25:28 +01:00
Chaosus
a64b3fd3f8 Allow SCREEN_UV to be used in light function of spatial shader 2024-11-19 11:39:49 +03:00
passivestar
edd6acdfd4 Expose state machine focus color to theming 2024-11-19 01:14:09 +04:00
Thaddeus Crews
91bd80de51
Merge pull request #98160 from Rindbee/change-the-parent-node-of-EditorHelpBitTooltip
Add `EditorHelpBitTooltip` as a child of `p_target` to avoid jitter
2024-11-18 09:23:52 -06:00
Thaddeus Crews
8d530bc95a
Merge pull request #99176 from tracefree/obstacle_transform
Fix obstacle avoidance and 3D editor ignoring transform
2024-11-18 09:23:48 -06:00
Thaddeus Crews
895d433f50
Merge pull request #99389 from KoBeWi/globalization_ensues
Fix global paths in EditorPropertyPath
2024-11-18 09:23:41 -06:00
Thaddeus Crews
8e324c4589
Merge pull request #86195 from GreenCrowDev/curve3d_close
Add `closed` property to `Curve3D`
2024-11-18 09:23:38 -06:00
Thaddeus Crews
3d6e712177
Merge pull request #93714 from Calinou/normal-map-invert-y-preserve-alpha-channel
Preserve existing alpha channel when using Normal Map Invert Y import option
2024-11-18 09:23:31 -06:00
Silc Lizard (Tokage) Renew
f5b49af99f Add RetargetModifier3D for realtime retarget to keep original rest 2024-11-18 22:44:55 +09:00
kobewi
7fa39c0dbe Fix global paths in EditorPropertyPath 2024-11-18 12:25:48 +01:00
Pablo Andres Fuente
56d01fb467 Show file names in the remove files confirmation dialog
Closes #85261

Co-authored-by: jsjtxietian <jsjtxietian@outlook.com>
2024-11-18 01:04:30 -03:00
Giganzo
8a8fd299f8 Add persistent states for export with debug, as patch on editor restarts 2024-11-17 21:15:48 +01:00
A Thousand Ships
68f638cf02
Use (r)find_char instead of (r)find for single characters 2024-11-17 10:02:18 +01:00
Silc Lizard (Tokage) Renew
e283fdfb59 Fix spinner in AnimationTrackEdit in FPS mode 2024-11-17 01:54:06 +09:00
Silc Lizard (Tokage) Renew
602c5edbc4 Fix key is deselected by chaning key time in KeyEdit in FPS mode 2024-11-16 23:48:10 +09:00
matricola787
790efbb783 Implement closed path for Curve3d 2024-11-16 12:59:08 +01:00
Rie
31a3b418f7 Fix obstacle avoidance and 3D editor ignoring transform 2024-11-16 11:30:48 +01:00
Thaddeus Crews
773c8e9a93
Merge pull request #99253 from KoBeWi/tldr
Simplify some UID conversions
2024-11-15 10:42:46 -06:00
Thaddeus Crews
e9ce3932b3
Merge pull request #98099 from dalexeev/pot-gen-add-comment-support
POT Generator: Add support for `TRANSLATORS:` and `NO_TRANSLATE` comments
2024-11-15 10:42:45 -06:00
Thaddeus Crews
a52e28436e
Merge pull request #99148 from TopherBriggs/keyframe_crash_fix
Fix crash when inserting keyframes with empty properties array
2024-11-15 10:42:43 -06:00
Thaddeus Crews
f5431fe3f0
Merge pull request #98220 from bruvzg/dict_ed_fix
[Editor] Fix dictionary editor removing wrong keys and not updating key labels.
2024-11-15 10:42:37 -06:00
Thaddeus Crews
313fe08e19
Merge pull request #99177 from Chaosus/vs_swap_connections
Add swap connection option to visual shader graph
2024-11-15 10:42:35 -06:00
Thaddeus Crews
89f97021de
Merge pull request #99272 from Chaosus/vs_bug
Fix error emitting when reset a visual shader preview parameter
2024-11-15 10:42:34 -06:00
Pāvels Nadtočajevs
f5fad7592f Use processed filter list for native dialogs. 2024-11-15 12:08:33 +02:00
Chaosus
ce833a3885 Add swap connection option to visual shader graph 2024-11-15 13:02:09 +03:00
Christopher Briggs
d1ba152197
Fix crash when inserting keyframes with empty properties array 2024-11-15 11:01:34 +01:00
Chaosus
5a856a6896 Fix error emitting when reset a visual shader preview parameter 2024-11-15 12:39:07 +03:00
kobewi
5be53c36c0 Simplify some UID conversions 2024-11-14 23:22:59 +01:00
Thaddeus Crews
0cc1a2185f
Merge pull request #99223 from bruvzg/fd_title_transl
Fix missing native file dialog title translation.
2024-11-14 14:51:59 -06:00
Thaddeus Crews
a595ae2abb
Merge pull request #97461 from lalitshankarchowdhury/better-replace
Improve "Replace in Files" dialog button text
2024-11-14 14:51:58 -06:00
Thaddeus Crews
5dbc5af33d
Merge pull request #99219 from Chaosus/fix_ttr_vformat
Fix incorrect order: `TTR(vformat` instead of `vformat(TTR`
2024-11-14 14:51:56 -06:00
Thaddeus Crews
9b3063b663
Merge pull request #99213 from timothyqiu/direct
Remove unnecessary array construction when initializing the project manager
2024-11-14 14:51:54 -06:00
Thaddeus Crews
9513d18180
Merge pull request #98534 from YeldhamDev/i_hate_math
Make possible to scale multiple nodes at once in the canvas editor
2024-11-14 14:51:51 -06:00
Pāvels Nadtočajevs
932b2269f8 Fix missing native file dialog title translation. 2024-11-14 14:48:52 +02:00
Chaosus
f3344b71b1 Fix incorrect order: TTR(vformat instead of vformat(TTR 2024-11-14 11:37:17 +03:00
Haoyu Qiu
84e6330e85 Remove unnecessary array construction when initializing the project manager 2024-11-14 13:52:49 +08:00
Thaddeus Crews
8c0e1a7bee
Merge pull request #96618 from Chaosus/vs_copy_paste_preview_material
Add copy/paste options to preview material parameters in visual shader
2024-11-13 08:34:33 -06:00
Thaddeus Crews
1627912d11
Merge pull request #98918 from bruvzg/pck_enc_iv
Allow setting custom initialization vector for FileAccessEncrypted. Add export setting to set static seed for PCK encryption initialization vectors.
2024-11-13 08:34:31 -06:00
Thaddeus Crews
7cfd762009
Merge pull request #99147 from KoBeWi/conjure_uid
Create .uid file when creating new Resource
2024-11-13 08:34:20 -06:00
Thaddeus Crews
25a4d1c08c
Merge pull request #99144 from KoBeWi/banish_uid
Remove corresponding .uid file when removing file
2024-11-13 08:34:17 -06:00
Thaddeus Crews
86e9fafc83
Merge pull request #99139 from KoBeWi/I_haven't_hear_that_name_in_years
Restore original root name if renaming instance to empty
2024-11-13 08:34:15 -06:00
Thaddeus Crews
8fd98b69d2
Merge pull request #99135 from Meorge/fix-unresponsive-axis-value
Replace default deadzone magic number with named constant and fix `InputEventJoypadMotion::set_axis_value` unresponsiveness
2024-11-13 08:34:10 -06:00
Thaddeus Crews
64ce03f261
Merge pull request #93440 from Calinou/import-size-limit-downsample-if-necessary
Downsample textures on import if necessary for technical reasons
2024-11-13 08:33:40 -06:00
bruvzg
45593d45b3 Allow setting custom initialization vector for FileAccessEncrypted. Add export setting to set static seed for PCK encryption initialization vectors. 2024-11-13 08:16:12 +02:00
kobewi
28e5b213ae Create .uid file when creating new Resource 2024-11-13 00:40:31 +01:00
kobewi
0875523f6b Remove corresponding .uid file when removing file 2024-11-12 21:38:46 +01:00
kobewi
ad8ede2411 Restore original root name if renaming instance to empty 2024-11-12 20:29:10 +01:00
Chaosus
485e7f899b Add copy/paste options to preview material parameters in visual shader 2024-11-12 22:04:44 +03:00
Thaddeus Crews
646cef2ca2
Merge pull request #98680 from jaydensipe/expose-toast-notification-methods
Expose `get_editor_toaster` method to `EditorInterface`
2024-11-12 12:13:22 -06:00
Thaddeus Crews
4cc8478d36
Merge pull request #99062 from KoBeWi/selectively_selecting_selectors
Cleanup EditorInterface selectors' code
2024-11-12 12:13:21 -06:00
Thaddeus Crews
3c3303e0a4
Merge pull request #98031 from MajorMcDoom/anim-curve-zoom-fix
Fix inverted vertical zoom interaction in animation curve editor
2024-11-12 12:13:18 -06:00
Thaddeus Crews
9309b37228
Merge pull request #97955 from RobProductions/fix-godot-nav-preset
Restore the original `Godot` preset zoom modifier
2024-11-12 12:13:05 -06:00
Thaddeus Crews
75dc6e19cd
Merge pull request #98826 from UnfavorableEnhancer/animation-editor-snap-fix
Fix animation editor snapping value not lowering as intended when holding shift
2024-11-12 12:13:03 -06:00
Thaddeus Crews
8e6e59eed8
Merge pull request #95107 from KoBeWi/stealth_file_system
Optimize FileSystem Dock filtering
2024-11-12 12:13:00 -06:00
Malcolm Anderson
829dade53b Replace default deadzone magic number with named constant 2024-11-12 10:11:52 -08:00
Thaddeus Crews
d58ac7fc12
Merge pull request #98629 from timothyqiu/delete-delete
Fix duplicated Delete shortcut entries in Tiles Editor
2024-11-12 09:27:58 -06:00
Thaddeus Crews
847059503f
Merge pull request #98224 from timothyqiu/select-markers-dialog
Improve Select Markers dialog in AnimationTree editor
2024-11-12 09:27:53 -06:00
Thaddeus Crews
9374e8da32
Merge pull request #97946 from WhalesState/editor-spin-slider
Fix `EditorSpinSlider` grabber `TextureRect` doesn't follow parent when scrolling.
2024-11-12 09:27:42 -06:00
Thaddeus Crews
04f33894f5
Merge pull request #97041 from aXu-AP/script-highlight-scene
Highlight scripts used by current scene
2024-11-12 09:27:39 -06:00
Thaddeus Crews
9995c3eedd
Merge pull request #98446 from TokageItLab/look-at-modifier
Implement LookAtModifier3D
2024-11-12 09:27:35 -06:00
Mateus Reis
c6492de27b Profiler plot zoom and pan 2024-11-12 16:31:43 +02:00
smix8
086bd1d82c Improve NavigationObstacle3D editor tooling
Improves NavigationObstacle3D editing options inside the editor.
2024-11-12 12:44:12 +01:00
MewPurPur
5769c80196 Add minimum size to some debugger elements 2024-11-12 12:35:41 +02:00
Jayden Sipe
722d932466 Expose toast notification methods 2024-11-11 19:39:33 -05:00
kobewi
49dc4e0dda Cleanup EditorInterface selectors' code 2024-11-11 21:48:48 +01:00
Thaddeus Crews
ec6a1c0e79
Merge pull request #97912 from reduz/property-path-store-uid
Expose path properties save UID internally if referencing a resource
2024-11-11 14:18:41 -06:00
Thaddeus Crews
cea186af2a
Merge pull request #98797 from KoBeWi/toastkill_f
Close toasts instantly when Close button is pressed
2024-11-11 14:18:38 -06:00
Thaddeus Crews
848d90837e
Merge pull request #96730 from tracefree/properly_transforming_obstacles
Make use of NavigationObstacle3D's transform
2024-11-11 14:18:33 -06:00
Thaddeus Crews
2ed6d12652
Merge pull request #97363 from reduz/deterministic-gen-suberesources-id
Allow passing UID to importer
2024-11-11 14:18:30 -06:00
Thaddeus Crews
d76fbb7a40
Merge pull request #97356 from reduz/pck-file-removal
Add ability for PCK patches to remove files
2024-11-11 14:18:27 -06:00
Thaddeus Crews
2430b7f9b4
Merge pull request #97352 from reduz/uids-everywhere
Universalize UID support in all resource types
2024-11-11 14:18:25 -06:00
Thaddeus Crews
93815e7e97
Merge pull request #99013 from TokageItLab/fps-compat-toggle
Add FPS compatible option in second mode of the animation editor snapping
2024-11-11 14:18:24 -06:00
Thaddeus Crews
9be806aef1
Merge pull request #92986 from Repiteo/core/ref-instantiate-integration
Core: Integrate Ref `instantiate` where possible
2024-11-11 14:18:15 -06:00
Thaddeus Crews
563355637e
Merge pull request #97722 from dustdfg/fix_wrong_groups_tooltip
Fix tooltip message of button that opens groups/signals dock
2024-11-11 14:18:13 -06:00
Thaddeus Crews
489d4933ab
Merge pull request #97081 from aXu-AP/uv-editor-without-polygon
Open UV editor in point editing mode if no points
2024-11-11 14:18:12 -06:00
Thaddeus Crews
360f42c281
Merge pull request #98859 from ydeltastar/method-selector
Make the method selector dialog available via `EditorInterface`
2024-11-11 14:18:08 -06:00
Thaddeus Crews
869e059f07
Merge pull request #98074 from YeldhamDev/stop_moving_will_ya
Add a pin toggle to prevent involuntary bottom editor switching
2024-11-11 14:18:02 -06:00
Thaddeus Crews
204f589213
Merge pull request #97551 from lalitshankarchowdhury/resize-audio-waveform
AudioStreamImport: Allow waveform resize
2024-11-11 14:18:00 -06:00
Thaddeus Crews
ed3de25a9a
Merge pull request #97415 from YeldhamDev/i_love_all_my_properties_equally
Make possible to favorite properties in the inspector
2024-11-11 14:17:57 -06:00
Silc Lizard (Tokage) Renew
6fc061b4fe Implement LookAtModifier3D 2024-11-12 05:03:35 +09:00
Silc Lizard (Tokage) Renew
64d04c375c Add FPS compatible option in second mode of animation editor snapping 2024-11-12 04:39:13 +09:00
Hugo Locurcio
3e8a24d0da
Display CPU and GPU model name in the editor visual profiler
This shows the information from the remote device, which will typically
differ from the local device in remote debugging scenarios.
2024-11-11 19:51:54 +01:00
Juan
2ac562cdf8 Add ability for PCK patches to remove files
Co-authored-by: Mikael Hermansson <mikael@hermansson.io>
2024-11-11 16:34:37 +01:00
Michael Alexsander
bb07b2d619
Add a lock toggle to prevent involuntary bottom editor switching 2024-11-11 12:09:57 -03:00
Juan
d57846087b
Universalize UID support in all resource types
Ensures all resource types support UIDs in a project.

This is required to fix:
* Scripts and many other resource types can't be referenced by UID and when refactored the references are lost.
* Path export properties can't use UID for unsupported types.
* Refactoring problems when files are moved outside the editor (this PR effectively fixes it).
* Editor properly refreshing paths if they changed externally while opened (as example, git update).
  This needs to be addressed in a subsequent PR, but this one effectively sets the prerequisites.

Resource types that do not support UID will get a .uid file appended to them (this includes .gd, .gdshader, .gdextension, etc. files).
2024-11-11 15:59:56 +01:00
Juan
fe34c45d2a
Allow passing UID to importer
This helps, for importers spitting out new resources to the res://
filesystem to actually hash them to generate deterministic UIDs.

This PR also fixes the determinism for translations.
2024-11-11 15:22:42 +01:00
yahkr
9625fdc1d7 Fix float value used for MONITOR_TYPE_QUANTITY 2024-11-11 08:33:47 -05:00
yds
9db8b0e333 Make the method selector dialog available via EditorInterface 2024-11-11 08:36:02 -03:00
UnfavorableEnhancer
d9a1e65d50 fix holding shift not lowering animation snap 2024-11-11 13:12:09 +03:00
Haoyu Qiu
09b6466e14 Translate the name of the debugger session tabs 2024-11-11 15:54:11 +08:00
kobewi
cb7304662b Close toasts instantly when Close button is pressed 2024-11-10 21:23:48 +01:00
Thaddeus Crews
925b690c98
Core: Integrate Ref::instantiate where possible 2024-11-10 12:41:26 -06:00
Thaddeus Crews
0f5f3bc954
Merge pull request #98558 from jasonmorgado/add-track-filter
Add type filters to AnimationPlayer's "Add Track"
2024-11-10 12:13:10 -06:00
Thaddeus Crews
c4a52e1ade
Merge pull request #98809 from bruvzg/mac_gde_libs_non_uni
[GDExtension] Improve macOS library loading/export.
2024-11-10 12:13:06 -06:00
Thaddeus Crews
297ceda96d
Merge pull request #98794 from KoBeWi/programming_a_toaster_aka_internet_of_things
Improve EditorToaster code
2024-11-10 12:13:00 -06:00
Thaddeus Crews
63838c936c
Merge pull request #98278 from a-johnston/fuzzy-search-rebase
Add fuzzy string matching to quick open search
2024-11-10 12:12:56 -06:00
Thaddeus Crews
f3294e59e1
Merge pull request #98891 from Faless/debugger/game_view_settings
[Debugger] Better settings configuration for RuntimeNodeSelect and Window quit
2024-11-10 12:12:46 -06:00
Thaddeus Crews
68c35f498a
Merge pull request #98232 from dbnicholson/editor-dock-select-root
Fix selecting root node before button released
2024-11-10 12:12:39 -06:00
Thaddeus Crews
5d7a7c01b4
Merge pull request #98988 from AThousandShips/fix_game_feature
[Editor] Fix order of editor features
2024-11-10 12:12:35 -06:00
Thaddeus Crews
90ce26a27b
Merge pull request #94889 from rune-scape/no-const-list-erase
Remove const_cast in `List::erase`
2024-11-10 12:12:34 -06:00
Thaddeus Crews
560dfc738d
Merge pull request #98980 from Logharaa/remove-unnecessary-condition
Remove unnecessary condition in WAV importer
2024-11-10 12:12:33 -06:00
Thaddeus Crews
fbded4e0d7
Merge pull request #98716 from Calinou/editor-improve-mesh-uv-preview
Improve Mesh UV1/UV2 preview in the editor
2024-11-10 12:12:29 -06:00
Thaddeus Crews
a3efd2b498
Merge pull request #98710 from YeldhamDev/runtime_reimport_reload
Reload cached resources in runtime on file reimport
2024-11-10 12:12:27 -06:00
Rie
44ef3d35eb Make use of NavigationObstacle3D's transform
Co-authored-by: a0kami <dev.aokami@netc.fr>
2024-11-10 17:08:12 +01:00
Jason Morgado
d5176757c0 Add type filters to AnimationPlayer's "Add Track"
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-Authored-By: Tomek <kobewi4e@gmail.com>
2024-11-09 10:14:06 -05:00
A Thousand Ships
2d8eb290f1
[Editor] Fix order of editor features
Order was broken after adding `Game View`
2024-11-09 10:51:55 +01:00
Felix Yuan
f491d2fe24 Don't try to move selection if there are no visible elements 2024-11-09 01:29:44 -08:00
Logharaa
b40e04d94f Remove unnecessary condition 2024-11-09 10:42:22 +09:00
rune-scape
a47daa0a44 Avoid const_cast in List::erase by requiring mutable elements 2024-11-08 00:10:08 -08:00
Thaddeus Crews
36e6207bb4
Merge pull request #98911 from KoBeWi/😵‍💫
Fix wrong checked menu item in 3D editor
2024-11-07 12:36:36 -06:00
Thaddeus Crews
3a7efc9edf
Merge pull request #98874 from aaronfranke/gltf-preserve-visibility
GLTF: Preserve node visibility on import
2024-11-07 12:36:35 -06:00
Thaddeus Crews
671d6e3230
Merge pull request #98150 from hunterloftis/fix-default-import-threaded
Fix freeze on non-thread-safe custom importers
2024-11-07 12:36:20 -06:00
Fabio Alessandrelli
c3e2e46855 [Debugger] Add configuration to the GameView debugger plugin 2024-11-07 15:03:17 +01:00
Fabio Alessandrelli
7cd850b909 [Debugger] Move quit shortcut configuration to the SceneDebugger 2024-11-07 15:03:17 +01:00
kobewi
4cbf15608c Fix wrong checked menu item in 3D editor 2024-11-07 00:15:38 +01:00
Aaron Franke
924732772b
GLTF: Preserve node visibility on import 2024-11-05 19:06:08 -08:00
Thaddeus Crews
88a48d52f0
Merge pull request #98801 from zeux/my-final-form
Rewrite index optimization code for maximum efficiency
2024-11-05 18:36:13 -06:00
aXu-AP
f168d0c80f Highlight scripts used by current scene 2024-11-05 17:10:02 +02:00
Michael Alexsander
81cb7658f8
Reload cached resources in runtime on file reimport 2024-11-05 10:51:20 -03:00
passivestar
a6bcff9cfd Add missing audio bus button styles 2024-11-05 14:58:31 +04:00
Thaddeus Crews
2450dee1bc
Merge pull request #93401 from Repiteo/style/clang-tidy-fixes
Style: Apply `clang-tidy` fixes
2024-11-04 21:52:05 -06:00
Thaddeus Crews
e38068f768
Merge pull request #96778 from aaronfranke/gltf-dont-fail-import
GLTF: Don't give up loading a texture if importing it fails
2024-11-04 21:51:56 -06:00
Aaron Franke
0b7354dfa9
GLTF: Don't give up loading image if import fails 2024-11-04 19:28:18 -08:00
Thaddeus Crews
bb5f390fb9
Style: Apply clang-tidy fixes (superficial)
• `modernize-use-bool-literals`, `modernize-use-nullptr`, and `readability-braces-around-statements`
2024-11-04 12:11:14 -06:00
Thaddeus Crews
89a311205f
Style: Apply clang-tidy fixes
• `modernize-use-default-member-init` and `readability-redundant-member-init`
• Minor adjustments to `.clang-tidy` to improve syntax & remove redundancies
2024-11-04 12:11:06 -06:00
Arseny Kapoulkine
260287b3a1 Rewrite index optimization code for maximum efficiency
While all the previous fixes to optimizeVertexCache invocation fixed the
vertex transform efficiency, the import code still was missing two
crucial recommendations from meshoptimizer documentation:

- All meshes should be optimized for vertex cache (this reorders
  vertices for maximum fetch efficiency)
- When LODs are used with a shared vertex buffer, the vertex order
  should be generated by doing a vertex fetch optimization on the
  concatenated index buffer from coarse to fine LODs; this maximizes
  fetch efficiency for coarse LODs

The last point is especially crucial for Mali GPUs; unlike other GPUs
where vertex order affects fetch efficiency but not shading, these GPUs
have various shading quirks (depending on the GPU generation) that
really require consecutive index ranges for each LOD, which requires the
second optimization mentioned above. However all of these also help
desktop GPUs and other mobile GPUs as well.

Because this optimization is "global" in the sense that it affects all
LODs and all vertex arrays in concert, I've taken this opportunity to
isolate all optimization code in this function and pull it out of
generate_lods and create_shadow_mesh; this doesn't change the vertex
cache efficiency, but makes the code cleaner. Consequently,
optimize_indices should be called after other functions like
create_shadow_mesh / generate_lods.

This required exposing meshopt_optimizeVertexFetchRemap; as a drive-by,
meshopt_simplifySloppy was never used so it's not exposed anymore - this
will simplify future meshopt upgrades if they end up changing the
function's interface.
2024-11-04 06:58:06 -08:00
bruvzg
2d66988f99
[GDExtension] Improve macOS library loading/export. 2024-11-04 09:28:30 +02:00
kobewi
025976dc45 Improve EditorToaster code 2024-11-03 14:16:22 +01:00
Hugo Locurcio
dafba55c69
Don't tint editor bottom panel icons when hovered or pressed
This prevents the error/warning icons from turning gray or green,
making them hard to recognize. A similar mechanism is already used
for EditorLog filter button icons.

This also fixes typos in FileDialog theme color assignment
(`icon_color_pressed` instead of `icon_pressed_color`). The exposed theme
item names remain the same.
2024-11-02 18:35:45 +01:00
ocean (they/them)
6c65213487 Extend Curve to allow for arbitrary domains 2024-11-02 08:25:40 -04:00
bruvzg
2506742013
[Editor] Copy encryption and script settings on export preset duplication. 2024-11-01 23:44:14 +02:00
tetrapod00
6454ea4606 Add quad mesh to material preview 2024-11-01 14:20:10 -07:00
bruvzg
e81a2afbc4
[TextServer] Reset subpixel shift on blank glyphs and import option to enable/disable it. 2024-11-01 10:18:57 +02:00
Hugo Locurcio
78fc90e81e
Improve "No meshes to bake" LightmapGI error dialog in the editor
The error dialog now gives advice on the steps to follow to enable
lightmapping support on imported scenes and primitive meshes.
2024-11-01 02:21:33 +01:00
Thaddeus Crews
7982030b25
Merge pull request #69197 from aaronfranke/fix-tiny-convex
Fix debug line drawing with tiny convex hull mesh colliders
2024-10-31 20:14:37 -05:00
Thaddeus Crews
194ddfd0c4
Merge pull request #97257 from YeldhamDev/guess_godot_is_unity_after_all
Add "Game" editor for better runtime debugging
2024-10-31 20:14:34 -05:00
Thaddeus Crews
e84fae43be
Merge pull request #98662 from KoBeWi/never_has_been
Remove unused FILE_INFO from FileSystem dock
2024-10-31 20:14:33 -05:00
Hugo Locurcio
416e1a538f
Improve Mesh UV1/UV2 preview in the editor
- Use an AspectRatioContainer to prevent stretching that occurs depending
  on the dialog size.
- Draw UV bounds and a grid at 1/8th increments.
- Scale lines according to editor scale for better visibility on hiDPI displays.
2024-11-01 02:04:10 +01:00
Yuri Rubinsky
ef8d981267
Merge pull request #98303 from Chaosus/vs_transparency_preview
Add alpha channel display to vec4 previews of visual shader nodes
2024-10-31 11:17:34 +03:00
Clay John
7187c251da
Merge pull request #98620 from zeux/lodgen-cleanup
LOD: Remove "Raycast Normals" and associated "Normal Split Angle" settings
2024-10-30 17:13:57 -07:00
Clay John
a997001bd5
Merge pull request #98584 from Nazarwadim/emit_only_one_signal
Emit `filesystem_changed` only once per frame
2024-10-30 14:47:15 -07:00
Michael Alexsander
baffa731ab
Make possible to scale multiple nodes at once in the canvas editor
And also some smaller enhancements.
2024-10-30 13:24:00 -03:00
Michael Alexsander
16524a8a01
Add "Game" editor for better runtime debugging 2024-10-30 11:42:17 -03:00
Aaron Franke
96ec117d19
Fix debug line drawing with tiny convex hull mesh colliders 2024-10-30 00:47:56 -07:00
kobewi
f96ef5fc0d Remove unused FILE_INFO from FileSystem dock 2024-10-30 06:08:52 +01:00
Thaddeus Crews
696ca9db3c
Merge pull request #98039 from aaronfranke/button-icon
Rename internal Button `*_icon` functions to `*_button_icon` to match exposed methods
2024-10-29 19:25:59 -05:00
Thaddeus Crews
6b70a6197f
Merge pull request #98597 from timothyqiu/on-your-lawn
Fix heap-use-after-free when ctrl-clicking controls in a container
2024-10-29 19:25:44 -05:00
Thaddeus Crews
f8f9763c4a
Merge pull request #98075 from KoBeWi/based_folder
Fix wrong base directory when creating folder
2024-10-29 19:25:40 -05:00
Thaddeus Crews
674b0aecb0
Merge pull request #97936 from ev13bird/inspector_dock_filesystem_icon
Add Show in FileSystem icon for Inspector dock resource options menu item
2024-10-29 19:25:38 -05:00
Thaddeus Crews
b7a0971ad2
Merge pull request #97934 from adamscott/give-AThousandShips-a-break
[Codestyle] Set clang-format `RemoveSemicolon` rule to `true`
2024-10-29 19:25:36 -05:00
Aaron Franke
562c666e3d
Rename internal Button icon to button_icon to match exposed methods 2024-10-29 16:23:03 -07:00
yds
e6eeaf28df Add editor setting to stop the bottom panel from switching to the stack trace 2024-10-29 19:50:13 -03:00
Michael Alexsander
d678b095f9
Make possible to favorite properties in the inspector 2024-10-28 21:18:21 -03:00
Haoyu Qiu
514c3278a2 Fix duplicated Delete shortcut entries in Tiles Editor 2024-10-29 08:07:52 +08:00
Adam Johnston
3ac043c508 Add fuzzy string matching to quick open search
Co-authored-by: sam <samsface@gmail.com>
2024-10-28 11:24:36 -07:00
Arseny Kapoulkine
494fe2fe21 LOD: Remove "Raycast Normals" and associated "Normal Split Angle" settings
"Raycast Normals" was introduced in 4.4 dev and defaulted to "false".
The limited testing results at the time suggested that raycasting
generally reduces normal quality compared to native simplifier results,
at the same time increasing vertex memory and import time.

To play it safe, we introduced a setting that defaulted to false, with
the goal of removing it later in 4.4 development cycle if no regressions
are noticed. Since we already had three dev snapshots and no reports,
this change removes the setting and associated code.

"Normal Split Angle" was only used when raycast normals were enabled;
this change removes it from the settings, but keeps it in the script
binding for compatibility.

Existing meshes import exactly the same after this change (unless they
chose to override raycasting which would be surprising).

split_normals helper was only used in this code path and is also removed
for simplicity; it is unlikely that this code will be useful as is, as
it can only regenerate normals without fixing tangents or updating
positions.
2024-10-28 10:14:04 -07:00
Nazarii
01d1f10845 Emit filesystem_changed only once per frame 2024-10-28 09:09:52 +02:00
yds
893ce62967 Fix ColorPicker's remote synchronization when typing values 2024-10-26 18:41:16 -03:00
Hugo Locurcio
d352bbcb46
Add "OpenGL 3", "GLES" and "Linux/*BSD" to editor property capitalization
This is required to capitalize the following settings:

- "Fallback to OpenGL 3" project setting
- "Fallback to GLES" project setting
- "Linux/*BSD" category in the Editor Settings
2024-10-26 16:24:00 +02:00
Haoyu Qiu
574b413bef Fix heap-use-after-free when ctrl-clicking controls in a container 2024-10-26 10:43:54 +08:00
Thaddeus Crews
61accf0605
Merge pull request #97535 from HolonProduction/gizmo-cylinder
Editor: Improve cylinder gizmos
2024-10-25 13:04:14 -05:00
Thaddeus Crews
a2e3473532
Merge pull request #98378 from dalexeev/doc-clarify-engine-debugger
Clarify `EngineDebugger` and `EditorDebugger*` documentation
2024-10-25 13:04:04 -05:00
Thaddeus Crews
6ad513b0e8
Merge pull request #97090 from KoBeWi/secret_cloning_research
Don't rescan filesystem when duplicating
2024-10-25 13:04:03 -05:00
Thaddeus Crews
cd3c86d604
Merge pull request #90047 from ajreckof/fix-editing-exported-nodes-in-array-as-text
Fix editing exported nodes in array as text.
2024-10-25 13:04:00 -05:00
Thaddeus Crews
851516eeec
Merge pull request #97711 from EAinsley/fix#94718
Fix freeze when data chunk size in WAV header is larger than the actual size
2024-10-25 13:03:57 -05:00
Thaddeus Crews
de6814daae
Merge pull request #94108 from Calinou/obj-import-add-generate-lods-shadow-mesh-lightmap-uv2
Add Generate LODs, Shadow Mesh and Lightmap UV2 options to OBJ mesh import
2024-10-25 13:03:50 -05:00
Thaddeus Crews
cf313e4492
Merge pull request #96786 from passivestar/spin-slider-focus-fix
Fix EditorSpinSlider blocking viewport from getting focus
2024-10-25 13:03:47 -05:00
Thaddeus Crews
f8f7e42044
Merge pull request #93578 from Calinou/editor-filesystem-dock-context-add-shortcuts
Add default keyboard shortcuts to various actions in the FileSystem dock
2024-10-25 13:03:43 -05:00
Adam Scott
0d350e7108
Set clang-format RemoveSemicolon rule to true
- Set clang-format `Standard` rule to `c++20`
2024-10-25 13:49:43 -04:00
Clay John
2a8869e0ac
Merge pull request #98323 from Calinou/advanced-import-settings-button-no-swap-ok-cancel
Don't swap Advanced Import Settings button position based on Swap OK Cancel
2024-10-24 19:13:55 -07:00
Hugo Locurcio
b8ee61f45d
Add Generate LODs, Shadow Mesh and Lightmap UV2 options to OBJ mesh import
This puts OBJ mesh import on parity with 3D scene import. It's now
possible to have the same level of optimization as imported 3D scenes
while using the OBJ mesh workflow.

`optimize_indices_for_cache()` is now always called on import as well,
similar to what the 3D scene import already does.
2024-10-25 02:48:42 +02:00
Thaddeus Crews
db60dcc4fb
Merge pull request #97277 from timothyqiu/meta-focus
Fix Add Metadata dialog not focusing name field by default
2024-10-24 13:23:06 -05:00
Thaddeus Crews
fd75707035
Merge pull request #78312 from Calinou/editor-add-markdown-highlighting
Add Markdown syntax highlighting to the script editor
2024-10-24 13:23:02 -05:00
Thaddeus Crews
fa673be2b1
Merge pull request #91341 from bjornmp/NewMaster
Enforce custom nodes to keep their original type
2024-10-24 13:22:56 -05:00
Thaddeus Crews
7974ba57e9
Merge pull request #97199 from shahriarlabib000/popup
Fix `Sprite2D` dialog size for smaller screen device
2024-10-24 13:22:51 -05:00
Thaddeus Crews
da01b2a462
Merge pull request #98063 from TCROC/fix-headless-import
Fix Headless --import --quit crashes editor
2024-10-24 13:22:36 -05:00
Thaddeus Crews
3b70a96164
Merge pull request #96518 from Giganzo/popup-panel-style
Fix PopupPanel and PopupMenu menu styles
2024-10-24 13:22:34 -05:00
Ainsley Su
cd126a041e
No freezing when size in header is too large
Give warning if the size in header mismatch the actual file size. If
data chunk size is greater than the actual data size, try to import by
treating all the remaining data as data chunk and give warning to users.
2024-10-23 16:53:10 +02:00
Haoyu Qiu
e321faa59b Fix Add Metadata dialog not focusing name field by default 2024-10-23 08:18:13 +08:00
bjornmp
06998a3927 Enforce that custom nodes keep their original type
Enforce that custom nodes and resources created via the "Create New Node" dialog, should permanently retain their original type (script). This means:

- Type continuity: It should be impossible for the user to (accidentally) clear the original script of a custom node that was created via the "Create New Node" dialog.

- Extensibility: The user should be able to extend custom types as usual (create a script that inherits the original type and replace the original script of that node with his own). However, if he then clears his extension-script from that node later on, the custom type should revert to its original script instead of becoming a non-scripted type.
2024-10-22 18:18:16 +02:00
kobewi
d5fbc7dab1 Improve Scale Selection in Animation tab 2024-10-22 15:54:17 +02:00
Thaddeus Crews
a4ed24acef
Merge pull request #98041 from Hilderin/fix-lost-gdextensions-on-startup
Fix loss of gdextension on editor startup
2024-10-21 16:39:30 -05:00
Thaddeus Crews
77da16ce69
Merge pull request #88530 from davthedev/tree-hover-items
Add hover state to Tree items display
2024-10-21 16:39:16 -05:00
Thaddeus Crews
291e4b78e2
Merge pull request #98237 from dustdfg/os_transitive_image_headers_refactor
Don't include `core/io/image.h` in `core/os/os.h`
2024-10-21 16:39:15 -05:00
Thaddeus Crews
7a438dc72e
Merge pull request #97205 from tetrapod00/inspect-native-shader-code
Add "Inspect Native Shader Code" to shader inspector and shader editor
2024-10-21 16:39:13 -05:00
Thaddeus Crews
ecc2eb73fc
Merge pull request #97707 from Sauermann/fix-input-device-clash
Fix `InputEvent` device id clash
2024-10-21 16:39:10 -05:00
Thaddeus Crews
975f42227f
Merge pull request #97706 from lalitshankarchowdhury/fix-create-folder
Display proper message on invalid folder path
2024-10-21 16:39:10 -05:00
Thaddeus Crews
5fb22327ee
Merge pull request #97542 from AThousandShips/dict_sort_fix
[Core] Fix sorting of `Dictionary` keys
2024-10-21 16:39:05 -05:00
Danil Alexeev
be41e6f84e
Clarify EngineDebugger and EditorDebugger* documentation 2024-10-21 11:36:59 +03:00
Hilderin
fbd1643176 Fix lost of gdextension on editor startup.
Co-authored-by: NetroScript <noreply@enostrion.com>"
2024-10-20 18:39:31 -04:00