summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2021-02-11Improve resource load cachereduz
-Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
2021-02-08Initialize class/struct variables with default values in modules/Rafał Mikrut
2021-01-31Merge pull request #45315 from RandomShaper/modernize_threadRémi Verschelde
Modernize Thread
2021-01-29Modernize ThreadPedro J. Estébanez
- Based on C++11's `thread` and `thread_local` - No more need to allocate-deallocate or check for null - No pointer anymore, just a member variable - Platform-specific implementations no longer needed (except for the few cases of non-portable functions) - Simpler for `NO_THREADS` - Thread ids are now the same across platforms (main is 1; others follow)
2021-01-28Unify URI encoding/decoding and add to C#Aaron Franke
http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
2021-01-26Fix highlight color for class attributes that are also keywordsLucas Van Mol
2021-01-11Merge pull request #43176 from mateosss/crash-uninit-constRémi Verschelde
Fix crash by adding nullcheck for uninitialized constants
2021-01-11Merge pull request #43980 from gvekan/fix-missing-function-hintsRémi Verschelde
Fix missing function hints
2021-01-11Merge pull request #44104 from nekomatata/coroutine-await-fixRémi Verschelde
Fix error when calling coroutine with await in _ready
2021-01-11Merge pull request #44005 from RandomShaper/gds_needless_checkRémi Verschelde
Remove useless check in GDScript
2021-01-11Merge pull request #44604 from lyuma/gdscript_dictionary_crashRémi Verschelde
GDScript: Fix crash when iterating through empty dictionary.
2021-01-11Merge pull request #44719 from ThakeeNathees/assert-argument-bug-fixedRémi Verschelde
GDScript assert message parsing bug fixed
2021-01-11Merge pull request #44672 from ThakeeNathees/array-dict-const-fold-bug-fixRémi Verschelde
Array/Dictionary marked as not safe to const fold
2021-01-11Merge pull request #44818 from ThakeeNathees/const-crash-fixRémi Verschelde
GDScript crash at incomplete const bug fix
2021-01-11Merge pull request #44889 from ThakeeNathees/builtin-invalid-call-crash-fixRémi Verschelde
GDScript invalid method call on built-in crash fix
2021-01-11Merge pull request #45076 from ↵Rémi Verschelde
ThakeeNathees/gdscript-operator-precedence-bug-fix GDScript operator `+` `-` precedence bug fix
2021-01-10GDScript operator `+` `-` precedence bug fixThakee Nathees
Fix: #43265
2021-01-04doc: Sync classref with current sourceRémi Verschelde
2021-01-03GDScript builtin invalid function call crash fixThakee Nathees
Fix: #44852
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-30GDScript crash at incomplete const bug fixThakee Nathees
2020-12-28Rename Math::stepify to snappedMarcel Admiraal
2020-12-28Rename empty() to is_empty()Marcel Admiraal
2020-12-27GDScript assert message parsing bug fixedThakee Nathees
Fix: #43540
2020-12-25Array/Dictionary marked as not safe to const foldThakee Nathees
Fix: #44459
2020-12-21Fix crash when iterating through empty dictionary.Lyuma
2020-12-17Fix error when calling coroutine with await in _readyPouleyKetchoupp
The code paths for calling async functions seemed to be missing in some cases, causing a debug break and false positive error.
2020-12-16Merge pull request #44424 from briansemrau/gdscript-fix-andRémi Verschelde
Fix gdscript `and` operator
2020-12-16Fix gdscript and operatorBrian Semrau
2020-12-15fixes crash in disassemlber for opcode OPCODE_ASSIGN_TYPED_NATIVEJordan Schidlowsky
2020-12-15Merge pull request #44275 from vnen/variant-function-arg-pointersRémi Verschelde
Use pointer parameters in Variant function pointers
2020-12-15Merge pull request #43890 from vnen/gdscript-builtin-functions-refactorRémi Verschelde
GDScript: Refactor builtin functions
2020-12-13Pow method doc fixskyace65
2020-12-10Use pointer parameters in Variant function pointersGeorge Marques
Instead of references. This is needed because those function pointers are used in GDNative which needs to work with plain C, which doesn't support passing parameters by reference.
2020-12-09LSP: Fix iterator in enum API dumpRémi Verschelde
2020-12-09Static analyzer fixes:bruvzg
Removes unused code in OS. Fixes return types. Fixes few typos.
2020-12-08Merge pull request #43742 from qarmin/editor_modules_default_valuesRémi Verschelde
Initialize class/struct variables with default values in platform/ and editor/
2020-12-08Constify ScriptLanguage.can_inherit_from_fileEmmanuel Leblond
2020-12-06Fix base script not initialized properly in some casesPouleyKetchoupp
Storing script references to pointer only in result.script_type could lead to losing the last reference, causing further conversions from Script* to Ref<Script> to fail. Now result.script_type_ref is always set first, and then cleared in the specific case of the script being the owner, to avoid cyclic reference issues.
2020-12-03Merge pull request #43328 from gvekan/better-keyword-completionRémi Verschelde
Add bracket or space to some keyword completions
2020-12-03Merge pull request #44011 from KoBeWi/red_roses_minus_blue_violetsRémi Verschelde
Fix subtracting colors and quats
2020-12-03Fix subtracting colors and quatsTomasz Chabora
2020-12-03Merge pull request #43959 from dalexeev/gds-docRémi Verschelde
Several edits to the GDScript docs
2020-12-03Add bracket or space to some keyword completionsGustav
2020-12-02Initialize class/struct variables with default values in platform/ and editor/Rafał Mikrut
2020-12-02Merge pull request #41095 from ThakeeNathees/GDScript-DocumentationRémi Verschelde
GDScript(2.0) Documentation generation system
2020-12-02Merge pull request #41773 from ThakeeNathees/default-argument-override-buf-fixGeorge Marques
GDScript default argument override bug fix
2020-12-02Refactor DocData into core and editor (DocTools) partsThakee Nathees
2020-12-01Several edits to the GDScript docsDanil Alexeev
2020-12-01Remove useless check in GDScriptPedro J. Estébanez
The removed check was adding a protection for the case where a `Reference` has not yet got its reference count initialized and a script is called on it. That would cause the object to be released after the call. The removed code was constructing the `Variant` via the `Object` constructor so it didn't deal with the reference count and so the release was prevented. However, `Variant` no longer works that way so that check was useless. Now it's just illegal to run GDScript on a Reference whose reference count has not been initialized.