1
0
Fork 0
Commit Graph

321 Commits

Author SHA1 Message Date
Rémi Verschelde d912dcc26c
Merge pull request #104013 from bruvzg/rload_nowait
[ResourceLoader] Do not wait for the main thread during initial reimport.
2025-03-14 00:08:53 +01:00
Thaddeus Crews 0cc7e2c27a
Merge pull request #95821 from anvilfolk/cache-gd-docs
Scripting: Fix script docs not being searchable without manually recompiling scripts
2025-03-13 08:57:40 -05:00
ocean 72045c8306 Scripting: Add script documentation cache to project
This PR adds a script documentation cache in the project folder.
It is loaded at alongside native documentation caches. This makes
scripts fully accessible through Search Help, including their
members, etc, right from project start, without having to compile
every single script.

Co-authored-by: Hilderin <81109165+Hilderin@users.noreply.github.com>
2025-03-12 13:44:41 -04:00
Yufeng Ying bebe037abf Add ConstIterator to Dictionary. 2025-03-13 01:28:46 +08:00
Pāvels Nadtočajevs 16865b6917
[ResourceLoader] Do not wait for the main thread during initial reimport. 2025-03-12 09:18:39 +02:00
A Thousand Ships 466590d0ec
Use `get_slicec` instead of `get_slice` for single character splitters 2025-03-08 20:36:37 +01: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
Agustín Marsero 2ba64a57c5 Fix Global Class names cache not saved with upgrade to 4.4.
Co-authored-by: Hilderin <81109165+Hilderin@users.noreply.github.com>
2025-02-12 18:33:38 +01:00
kobewi 7f0d81c433 Improve path handling in EditorQuickOpenDialog 2025-02-10 22:16:24 +01:00
Hilderin 9457666bba Fix accessing UID before first scan 2025-02-08 20:04:32 -05:00
kobewi 65509ae4ff Improve UID file creation condition 2025-02-06 17:08:00 +01:00
Pedro J. Estébanez 318af42020 Include more attributes in the global class names cache 2025-01-29 09:39:50 +01:00
Pedro J. Estébanez aca5cfc913 Rationalize parsing of file system cache 2025-01-21 12:59:19 +01:00
Thaddeus Crews 97003022c4
Merge pull request #101683 from KoBeWi/duplicate_preventer
Don't duplicate .uid files
2025-01-20 16:25:44 -06:00
kobewi 8aa3ee6a35 Create .uid files in EditorFileSystem 2025-01-18 21:01:39 +01:00
kobewi d8db3085a3 Don't duplicate .uid files 2025-01-17 14:22:18 +01:00
Adam Scott 33e16435f5
Replace some problematic uses of `String::num` to `String::num_int64` 2025-01-15 12:51:51 -05:00
Rémi Verschelde de1499c3c2 Merge pull request #100927 from KoBeWi/yeah,_uids
Assign new UID when duplicating file externally
2025-01-07 23:17:44 +01: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
Rémi Verschelde 88a101ef8c
Merge pull request #100787 from KoBeWi/uid_be_like_'I'm_back'
Re-create missing .uid files
2025-01-03 02:01:28 +01:00
kobewi 8e9c4e04be Assign new UID when duplicating file externally 2024-12-30 13:11:10 +01:00
kobewi e0ca8be392 Re-create missing .uid files 2024-12-24 20:45:41 +01: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
Rémi Verschelde 8a743f23e6
Merge pull request #98385 from RandomShaper/thread_yield
Rationalize busy waits
2024-12-20 23:56:39 +01: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
Pedro J. Estébanez 4f8dd96b3d Rationalize busy waits 2024-12-13 10:14:26 +01:00
Lukas Tenbrink b5c31ebb41 Add contains_char() for single-character 'contains' calls. 2024-12-06 20:23:35 +01:00
demolke 35bb827d10 Destroy EditorFilesystem/EditorSettings on test shutdown
Otherwise asan complains if a test tries to use these.

Split off from https://github.com/godotengine/godot/pull/98909
2024-12-02 19:34:39 +01:00
kobewi 0875523f6b Remove corresponding .uid file when removing file 2024-11-12 21:38:46 +01: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
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
Aaron Franke 0b7354dfa9
GLTF: Don't give up loading image if import fails 2024-11-04 19:28:18 -08:00
Nazarii 01d1f10845 Emit filesystem_changed only once per frame 2024-10-28 09:09:52 +02: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
Hilderin fbd1643176 Fix lost of gdextension on editor startup.
Co-authored-by: NetroScript <noreply@enostrion.com>"
2024-10-20 18:39:31 -04:00
kobewi 7377ca8d7d Don't rescan filesystem when duplicating 2024-10-04 16:15:32 +02:00
ocean 0ad55e964f Fix GDScript docs not updating when modified externally 2024-10-01 20:06:28 -04:00
Rémi Verschelde a83ea6b57d
Fix EditorFileSystem crash when fetching icons for unknown file types
Fixes crash reported in https://github.com/godotengine/godot/pull/97421#issuecomment-2376684690.
2024-09-26 16:01:23 +02:00
Rémi Verschelde 841061d50e
Merge pull request #97421 from SaNeOr/fix#97387
Fix GDExtension classes inheriting from Resource not using icons in FileSystem
2024-09-26 12:45:46 +02:00
Rémi Verschelde ef7547384c
Merge pull request #95678 from Hilderin/fix-slow-load-on-large-project-v2
Fix slow editor load on large projects (v2)
2024-09-26 12:45:31 +02:00
Hilderin 21f7c8a25f Fix slow editor load on large projects (v2) 2024-09-25 17:36:39 -04:00
SaNeOr e4cf4fcb2f fix GDExtension classes inheriting from Resource are not using icons in FileSystem 2024-09-25 04:09:09 +08:00
Rémi Verschelde 621cadcf65
Merge pull request #97168 from Hilderin/fix-reloading-scripts-already-in-use
Fix reloading scripts already in use
2024-09-20 21:35:08 +02:00
Hilderin 9638220473 Fix reloading scripts already in use 2024-09-20 12:12:24 -04:00
Rémi Verschelde ff2b5a5422
Merge pull request #97075 from KoBeWi/better_new_folder_(not_to_be_confused_with_new_better_folder)
Rework creating new folders in editor
2024-09-19 17:13:39 +02:00
Rémi Verschelde 8ba3c2aeb4
Merge pull request #92972 from ogapo/pr/warn-on-duplicate-uids
Editor: Warn on UID duplicates
2024-09-18 17:40:49 +02:00
kobewi ad99c79472 Rework creating new folders in editor 2024-09-17 12:40:25 +02:00
Rémi Verschelde 9fd431f078
Merge pull request #96002 from Hilderin/fix-resource-script-reload-external-editor
Fix script properties reload from external editor
2024-09-16 13:34:30 +02:00
Rémi Verschelde 5b2eececfd
Merge pull request #93372 from KoBeWi/instant_folders,_like_instant_noodles,_but_for_storing_files
Don't rescan filesystem when adding new directory
2024-09-16 13:34:09 +02:00