2377309c09
Merge pull request #104669 from KoBeWi/files_are_not_paths
...
Fix `_delete_internal_files()` receiving wrong path
2025-03-28 14:33:49 +01:00
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
8e15406117
Fix _delete_internal_files() receiving wrong path
2025-03-26 21:20:50 +01:00
9f67aeaae8
Merge pull request #104022 from precup/create_directory_fix
...
Defend against directories without trailing slashes
2025-03-19 12:27:07 +01:00
9de4efa451
Defend against directories without trailing slashes
2025-03-16 15:27:42 -07:00
38ecaec5f9
Create .uid files for detected new files
2025-03-16 19:23:06 +01:00
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
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
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
bebe037abf
Add ConstIterator to Dictionary.
2025-03-13 01:28:46 +08:00
16865b6917
[ResourceLoader] Do not wait for the main thread during initial reimport.
2025-03-12 09:18:39 +02:00
466590d0ec
Use get_slicec instead of get_slice for single character splitters
2025-03-08 20:36:37 +01:00
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
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
7f0d81c433
Improve path handling in EditorQuickOpenDialog
2025-02-10 22:16:24 +01:00
9457666bba
Fix accessing UID before first scan
2025-02-08 20:04:32 -05:00
65509ae4ff
Improve UID file creation condition
2025-02-06 17:08:00 +01:00
318af42020
Include more attributes in the global class names cache
2025-01-29 09:39:50 +01:00
aca5cfc913
Rationalize parsing of file system cache
2025-01-21 12:59:19 +01:00
97003022c4
Merge pull request #101683 from KoBeWi/duplicate_preventer
...
Don't duplicate .uid files
2025-01-20 16:25:44 -06:00
8aa3ee6a35
Create .uid files in EditorFileSystem
2025-01-18 21:01:39 +01:00
d8db3085a3
Don't duplicate .uid files
2025-01-17 14:22:18 +01:00
33e16435f5
Replace some problematic uses of String::num to String::num_int64
2025-01-15 12:51:51 -05:00
de1499c3c2
Merge pull request #100927 from KoBeWi/yeah,_uids
...
Assign new UID when duplicating file externally
2025-01-07 23:17:44 +01:00
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
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
8e9c4e04be
Assign new UID when duplicating file externally
2024-12-30 13:11:10 +01:00
e0ca8be392
Re-create missing .uid files
2024-12-24 20:45:41 +01:00
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
8a743f23e6
Merge pull request #98385 from RandomShaper/thread_yield
...
Rationalize busy waits
2024-12-20 23:56:39 +01:00
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
4f8dd96b3d
Rationalize busy waits
2024-12-13 10:14:26 +01:00
b5c31ebb41
Add contains_char() for single-character 'contains' calls.
2024-12-06 20:23:35 +01:00
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
0875523f6b
Remove corresponding .uid file when removing file
2024-11-12 21:38:46 +01:00
2ed6d12652
Merge pull request #97363 from reduz/deterministic-gen-suberesources-id
...
Allow passing UID to importer
2024-11-11 14:18:30 -06:00
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
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
0b7354dfa9
GLTF: Don't give up loading image if import fails
2024-11-04 19:28:18 -08:00
01d1f10845
Emit filesystem_changed only once per frame
2024-10-28 09:09:52 +02:00
6ad513b0e8
Merge pull request #97090 from KoBeWi/secret_cloning_research
...
Don't rescan filesystem when duplicating
2024-10-25 13:04:03 -05:00
fbd1643176
Fix lost of gdextension on editor startup.
...
Co-authored-by: NetroScript <noreply@enostrion.com >"
2024-10-20 18:39:31 -04:00
7377ca8d7d
Don't rescan filesystem when duplicating
2024-10-04 16:15:32 +02:00
0ad55e964f
Fix GDScript docs not updating when modified externally
2024-10-01 20:06:28 -04:00
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
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
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
21f7c8a25f
Fix slow editor load on large projects (v2)
2024-09-25 17:36:39 -04:00
e4cf4fcb2f
fix GDExtension classes inheriting from Resource are not using icons in FileSystem
2024-09-25 04:09:09 +08:00
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