Haoyu Qiu
7010d171b1
Relax the requirements for making EditorImportPlugin
2025-05-21 22:13:09 +08:00
Aaron Franke
19e6bc68aa
Explicitly handle Image AlphaMode enum instead of treating as bool
...
Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>
2025-05-20 05:04:23 -07:00
Thaddeus Crews
f1ba8eeae5
Merge pull request #105706 from TokageItLab/fix-fixer
...
Make silhouette fixer to use arc `Quaternion` constructor instead of `looking_at()`
2025-05-19 08:01:38 -05:00
Arseny Kapoulkine
6190d412d3
Adjust LOD selection metrics to use attribute error
...
- Revert meshoptimizer patch; the metric used for LOD selection now
incorporates attribute error
- Since LOD selection is now aware of attribute deviation, we don't
need to use a higher normal weight
- To prevent normal creases from creating input triangles with very
large normal deviation, reduce default normal merge threshold
- Since we now use combined metric to select LODs, we never need LODs
with error>1 as these should not be selected if the mesh is visible.
2025-05-18 17:38:54 +03:00
Thaddeus Crews
ce2f047112
Merge pull request #106437 from BlueCube3310/ch-remap-grow
...
Expand the imported texture channel count for remapping if necessary
2025-05-16 10:29:00 -05:00
Thaddeus Crews
c3247d87d8
Merge pull request #106423 from YeldhamDev/that_is_a_big_scrollbar_btw
...
Hide scrollbar in the audio stream importer dialog when unneeded
2025-05-16 07:43:11 -05:00
BlueCube3310
92cfd2b486
Expand the imported texture channel count for remapping if necessary
2025-05-15 19:18:15 +02:00
Thaddeus Crews
97df52c26d
Merge pull request #106338 from lalitshankarch/make-buttons-accessible
...
AudioStreamImport: Make play and stop buttons accessible through keyboard
2025-05-15 10:22:25 -05:00
Michael Alexsander
bbe9994bb1
Hide scrollbar in the audio stream importer dialog when unneeded
2025-05-14 20:08:36 -03:00
Raphaël Daubelcour
9511e1137d
Check if import_script is subtype of EditorScenePostImport
2025-05-14 12:07:17 -04:00
Lalit Shankar Chowdhury
18eaa97f85
AudioStreamImport: Make play and stop buttons accessible through keyboard
2025-05-14 12:05:50 +05:30
Thaddeus Crews
93140c0f76
Merge pull request #99676 from BlueCube3310/tex-import-vram-specified
...
Add Channel Remap settings to ResourceImporterTexture
2025-05-13 16:22:22 -05:00
LuoZhihao
237597b01f
BasisU: Use KTX2 format and add import options to configure encoder
2025-05-03 01:45:38 +08:00
Silc Lizard (Tokage) Renew
d2cf48700e
Make silhouette fixer use arc Quaternion constrructor instead look_at
2025-04-28 17:13:17 +09:00
Thaddeus Crews
f8a8d6cf04
Merge pull request #105700 from dementive/config-file-get-improvement
...
Improve ConfigFile get_sections and get_section_keys by returning Vector<String>
2025-04-27 19:21:31 -05:00
Thaddeus Crews
1a2a1b07df
Merge pull request #105799 from Repiteo/scons/enum-conversion-warnings
...
SCons: Add enum conversion warning
2025-04-27 19:21:23 -05:00
Thaddeus Crews
3947cbe3b2
Merge pull request #104386 from Repiteo/core/cpp-math
...
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
Thaddeus Crews
dc9c34f0c6
SCons: Add enum conversion warning
2025-04-26 12:06:20 -05:00
Thaddeus Crews
796a08d350
Merge pull request #105655 from bruvzg/svg_tx_import
...
Add `SVGTexture` importer.
2025-04-25 11:36:05 -05:00
dementive
b8e44a0000
Improve ConfigFile get_sections and get_section_keys by returning Vector<String>
2025-04-24 20:10:31 -04:00
Thaddeus Crews
5dc375b2fc
Merge pull request #105014 from aaronfranke/no-type-suffixes
...
Allow completely opting out of name suffix magic in 3D scene import
2025-04-24 17:18:50 -05:00
Pāvels Nadtočajevs
15cecfdac5
Add `SVGTexture` importer.
2025-04-24 08:15:53 +03:00
Pāvels Nadtočajevs
5b49fd4207
Selectively apply `FOCUS_ACCESSIBILITY` to the `Label`s instead of setting it by default.
2025-04-23 12:47:31 +03:00
Thaddeus Crews
09ea7bc6a3
Merge pull request #105400 from bruvzg/ov_cleanup
...
Remove old oversampling property from font importers.
2025-04-17 09:14:25 -05:00
Thaddeus Crews
ad40939b6f
Core: Replace C math headers with C++ equivalents
...
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
Thaddeus Crews
87f986ae67
Merge pull request #97837 from basicer/fix-update-timer
...
SceneImportSettings update_timer should be a oneshot.
2025-04-15 12:28:39 -05:00
Pāvels Nadtočajevs
92e7a6ff8f
Remove old oversampling property from font importers.
2025-04-15 08:22:17 +03:00
Thaddeus Crews
d236bd8633
Merge pull request #99543 from KoBeWi/using_rng_to_destroy_rng
...
Add `create_id_for_path()` to ResourceUID
2025-04-11 09:51:12 -05:00
kobewi
ff1f040893
Add create_id_for_path() to ResourceUID
2025-04-11 00:53:34 +02:00
Thaddeus Crews
94282d88f9
Core: Use `Math` namespace for constants
2025-04-10 16:29:30 -05:00
A Thousand Ships
889410dcda
Add `String::replace_char(s)` methods for performance and convenience
2025-04-10 13:08:45 +02:00
Aaron Franke
e96828673f
Allow completely opting out of name suffix magic in 3D scene import
2025-04-10 01:11:54 -07:00
Thaddeus Crews
f7b72704db
Merge pull request #104804 from etherealxx/fix-advanced-import-inspector-missing-tooltip
...
Fix missing tooltips on "Advanced Import Settings for Scene" window
2025-04-09 18:12:00 -05:00
Thaddeus Crews
7a6c3b309f
Merge pull request #105130 from bruvzg/uri_fix_plus
...
Add uri_file_decode to handle + in file names.
2025-04-09 18:11:56 -05:00
Thaddeus Crews
e6a61b1ecc
Merge pull request #76829 from bruvzg/ac_kit_direct
...
Implement screen reader support using AccessKit library.
2025-04-08 12:32:47 -05:00
Pāvels Nadtočajevs
302fa831cc
Initial editor accessibility.
2025-04-08 20:25:48 +03:00
Pāvels Nadtočajevs
9abe2e5294
Add `uri_file_decode` to handle `+` in file names.
2025-04-07 23:49:17 +03:00
Yufeng Ying
bbc380b07e
Do not iterate Dictionary with get_key_at_index.
2025-04-07 21:54:13 +08:00
Yufeng Ying
8ae16699c5
Do not use Dictionary::keys() for Dictionary iteration.
2025-04-05 18:42:13 +08:00
Yufeng Ying
4f4031a675
Replace size() == 0 with is_empty().
2025-04-02 19:18:43 +08:00
Michael Alexsander
556933306a
Allow to compile templates without navigation features
2025-04-01 11:53:35 -03:00
Pāvels Nadtočajevs
19f360d65a
Add font import flag to toggle modulation of colored glyphs.
2025-04-01 13:36:10 +03:00
Etherealxx
7e00ea510e
Fix missing tooltips on "Advanced Import Settings for Scene" window
...
In Godot, it's possible to customize how the engine imports 3D resource,
by either clicking "Advanced..." button on Import Dock or double
clicking the resource on FileSystem Dock. Doing so will open the
Advanced Import Settings window, where user could inspect the 3D resource
in a viewport, with the scene tree on the left and an inspector panel
akin to the Import dock on the left. It contains the same settings from
the Import dock, with some advanced additions.
This commit fixes a regression since 4.2 where settings in the inspector
panel on the right part of the window does not contain the same tooltips
as its Import Dock counterpart (which were retrieved from the XML class
reference).
2025-04-01 10:29:40 +07:00
Rémi Verschelde
3b90bb56ad
Merge pull request #89782 from KoBeWi/stdArrayList
...
Use initializer list in Arrays
2025-03-28 17:29:40 +01:00
Rémi Verschelde
f63fdc8a9f
Merge pull request #104667 from Calinou/editor-no-toast-texture-detect-3d
...
Don't show toasts for textures detected as used in 3D/normal/roughness
2025-03-28 14:33:41 +01:00
Yyf2333
22b5ec17fb
Using iterator pattern instead of List::Element *.
...
Co-authored-by: Adam Scott <ascott.ca@gmail.com>
2025-03-28 13:29:15 +08:00
Hugo Locurcio
c7d855967c
Don't show toasts for textures detected as used in 3D/normal/roughness
...
A message is still printed in the Output panel when a texture is detected
as being used in 3D/normal/roughness.
2025-03-27 14:58:57 +01:00
kobewi
75881f8322
Use initializer list in Arrays
2025-03-26 18:38:15 +01:00
BlueCube3310
1b5101723d
Add Channel Remap settings to ResourceImporterTexture
2025-03-21 14:45:06 +01:00
Lyuma
8997c999e9
Scene import: extract UID paths and store fallback
...
When extracting meshes, materials and animations, always store the uid:// path as well as a res:// fallback.
When validating import settings, load the fallback path if the uid:// path fails to load.
Update save_to_file/fallback_path every import to keep the file path in sync with the uid.
Use UID hashing for meshes and animations.
2025-03-19 11:50:39 +01:00
Hugo Locurcio
6408476a76
Update Mipmaps > Limit import option visibility when intended in the texture importer
...
Previously, you had to switch to another file and back to the original
file for the option visibility to update.
2025-03-18 19:13:49 +01:00
Thaddeus Crews
1f6426066e
Merge pull request #98768 from Repiteo/core/constexpr-math-operators
...
Core: Add `constexpr` constructors/operators to math structs
2025-03-17 16:03:20 -05:00
kobewi
6f25babd6b
Remove empty constructors and destructors from editor/
2025-03-17 21:20:02 +01:00
Thaddeus Crews
ea62170dac
Core: Add `constexpr` constructors/operators to math structs
...
• Begin integrating `constexpr` on math tests; use `static_assert` where appropriate
2025-03-17 12:15:31 -05:00
kobewi
7cb2fb189a
Remove TOOLS_ENABLED checks from editor/
2025-03-14 18:13:16 +01:00
Yufeng Ying
bebe037abf
Add ConstIterator to Dictionary.
2025-03-13 01:28:46 +08:00
A Thousand Ships
466590d0ec
Use `get_slicec` instead of `get_slice` for single character splitters
2025-03-08 20:36:37 +01:00
Thaddeus Crews
324512e11c
Style: Replace header guards with `#pragma once`
2025-03-07 17:33:47 -06:00
A Thousand Ships
5113022dfe
Clean up some uses of `String::substr`
...
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
Lyuma
f2ad4303aa
csv import: generate positve UID for .translation and follow renames
...
Mask with INT64_MAX to avoid negative UIDs which cause bugs.
If the generated .translation UID is already in use (renamed), overwrite that file instead.
2025-02-22 01:08:48 -08:00
kobewi
e2a6d53419
Increase size of Offset field in audio import dialog
2025-02-19 10:52:39 +01:00
Rémi Verschelde
622344b47d
Merge pull request #99810 from hakro/toggle_skeleton
...
Style skeleton button on import screen
2025-02-12 11:20:56 +01:00
Pāvels Nadtočajevs
b2e5a5b4c1
Add missing `Auto (Except Pixel Fonts)` option to advanced import dialog.
2025-02-07 11:16:46 +02:00
bruvzg
3be46a69c4
Fix uppercase B and X parsing in the integer literals.
2025-02-05 16:02:06 +02:00
kobewi
06b2c9f23f
Fix save path validation for imported scenes
2025-01-30 23:27:36 +01:00
Rémi Verschelde
21fcb56547
Remove unused `EditorSceneFormatImporter::_get_import_flags`
...
This has never been used since Godot was open sourced.
Import flags are used but directly through `_import_scene`.
2025-01-14 16:57:06 +01:00
Saracen
048788f07d
Fix scrolling for advanced importer controls.
2025-01-14 11:36:48 +01:00
Lyuma
e4de1f4583
Make `EditorSceneFormatImporter::_get_import_options` match EditorScenePostImportPlugin API
2025-01-13 21:45:53 +01:00
Aarni Koskela
f134769506
Fix various typos
...
* Add TODO notes for typos that should be fixed for 5.0
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
Rémi Verschelde
a7d84fa022
Merge pull request #100792 from lyuma/post_import_plugin_subresources
...
Allow post-import plugins to modify `_subresources`
2025-01-08 00:21:03 +01:00
Yufeng Ying
34d8255947
Force build editor with regex module, remove checking code.
...
Fix include.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-07 19:43:23 +08:00
Rémi Verschelde
ba8a155551
Merge pull request #98909 from demolke/master
...
GLTF: Don't duplicate textures when importing blend files
2025-01-06 22:46:44 +01:00
Thaddeus Crews
d8b1a5aac2
Merge pull request #92235 from paddy-exe/advanced-import-macbook-mouse-magnify
...
Add MagnifyGesture to Advanced Import dialog zooming
2024-12-30 08:58:50 -06:00
Patrick Exner
f1b3f17ae3
Add MagnifyGesture to Advanced Import dialog zooming
2024-12-26 23:53:34 +01:00
Lyuma
637fe3ccdd
Allow post-import plugins to modify _subresources
...
The old code fetched some data before the `EditorScenePostImportPlugin._pre_process` callback.
While the callback could modify existing keys, this prevented users from adding new data on a fresh import.
By fetching the keys after pre_process, this means users can consistently modify import options for nodes, meshes, materials and animations in a post-import plugin.
2024-12-24 07:34:24 -08:00
A Thousand Ships
a1846b27ea
Improve use of `Ref.is_null/valid`
...
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Yufeng Ying
f241c1fda0
Remove unused header in editor.
...
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:38 +08:00
demolke
143d8c87bb
Move reimport check to EditorImportPlugin
...
reimport_append is used by gltf_document, fbx_document and editor_import_plugin. The first two will never call it when importing == false. It's only the editor_import_plugin that should guard against that.
https://docs.godotengine.org/en/stable/classes/class_editorimportplugin.html#class-editorimportplugin-method-append-import-external-resource
The motivation of removing the check from gltf_document call path is to be able to test nested imports (texture embedded in gltf).
2024-12-18 21:24:18 +01:00
Haoyu Qiu
bf4e5cca3f
Make editor's shortcut names translated on-site
2024-12-18 13:00:30 +08:00
Thaddeus Crews
9ecdeb3723
Merge pull request #98747 from tetrapod00/standardize-renderer-strings
...
Standardize terms for renderers in error strings
2024-12-13 16:19:37 -06:00
Thaddeus Crews
31bc6afcad
Merge pull request #96802 from dsnopek/expose-resource-importer-get-format-version
...
Expose `ResourceImporter::get_format_version` via `EditorImportPlugin::_get_format_version()`
2024-12-12 16:13:26 -06:00
David Snopek
af47df1005
Expose `ResourceImporter::get_format_version` via `EditorImportPlugin::_get_format_version()`
2024-12-12 08:15:28 -06:00
Rémi Verschelde
abca8318c4
Merge pull request #98071 from BlueCube3310/res-import-tex-clean
...
Clean up ResourceImporterTexture
2024-12-12 14:09:45 +01:00
BlueCube3310
0400cbce1e
Clean up ResourceImporterTexture
2024-12-12 11:38:40 +01:00
Chaosus
9a8d6628de
[Scene] Add `SceneStringName::hover`
2024-12-11 11:11:25 +03:00
Lukas Tenbrink
b5c31ebb41
Add contains_char() for single-character 'contains' calls.
2024-12-06 20:23:35 +01:00
Thaddeus Crews
42eb4fbc07
Merge pull request #93831 from what-is-a-git/wav-runtime
...
Add runtime file loading to `AudioStreamWAV`
2024-12-03 14:40:42 -06:00
what-is-a-git
707f1038c3
Add runtime file loading to AudioStreamWAV
2024-12-02 20:03:53 -05:00
Rémi Verschelde
fa264115ce
Merge pull request #98664 from bruvzg/ts_reset_subpixel_shift
...
[TextServer] Reset subpixel shift on blank glyphs.
2024-12-02 17:20:07 +01:00
hakro
8f5b4cd7fe
Style skeleton button on import screen
2024-11-29 00:47:33 +01:00
Thaddeus Crews
1c78b09815
Merge pull request #96544 from SaracenOne/import_thumbnails
...
Generate thumbnails on imported scenes.
2024-11-27 10:47:02 -06:00
Thaddeus Crews
04786f0ee8
Merge pull request #97824 from TokageItLab/retarget-modifier
...
Add RetargetModifier3D for realtime retarget to keep original rest
2024-11-26 13:04:47 -06:00
Saracen
74611a74d1
Generate editor thumbnails on imported scenes.
2024-11-24 10:23:56 -08: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
A Thousand Ships
68f638cf02
Use `(r)find_char` instead of `(r)find` for single characters
2024-11-17 10:02:18 +01: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
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
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
204f589213
Merge pull request #97551 from lalitshankarchowdhury/resize-audio-waveform
...
AudioStreamImport: Allow waveform resize
2024-11-11 14:18:00 -06:00