summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2022-11-30Acknowledge that a CLASS kind of a DataType might not have an identifierBartosz Bielecki
2022-11-27Merge pull request #69194 from raulsntos/dotnet/begone-variant-disposerIgnacio Roldán Etcheverry
C#: Remove VariantSpanDisposer and use constants in stackalloc
2022-11-27C#: Remove VariantSpanDisposer and use constants in stackallocRaul Santos
- Remove `VariantSpanDisposer`, no need to dispose of the Variant Spans since we are now borrowing the Variants instead of copying them. - Remove `VariantSpanExtensions.Cleared` that was only used so the Span was initialized for `VariantSpanDisposer` to know what to dispose. - Fix stackalloc Spans to use constant VarArgsSpanThreshold and avoid bound checks.
2022-11-26Merge pull request #69191 from raulsntos/dotnet/no-throwIgnacio Roldán Etcheverry
Fix `VariantUtils.UnsupportedType` method throwing
2022-11-26Merge pull request #69088 from raulsntos/dotnet/globalIgnacio Roldán Etcheverry
C#: Add `global::` namespace to generated source
2022-11-26Fix `VariantUtils.UnsupportedType` method throwingRaul Santos
This method was not supposed to throw, just return the new constructed exception so it can be thrown by the caller.
2022-11-26C#: Add `global::` namespace to generated sourceRaul Santos
Adds `global::` to the fully qualified types in source generators to prevent ambiguity.
2022-11-25Merge pull request #69079 from adamscott/fix-singleton-scene-cyclic-loadRémi Verschelde
Fix singleton scene cyclic loading
2022-11-25Merge pull request #68310 from neikeq/csharp-opt-variant-generic-convRémi Verschelde
C#: Optimize Variant conversion callbacks
2022-11-25Fix singleton scene cyclic loadingAdam Scott
2022-11-25Merge pull request #69144 from DeeJayLSP/update_embreeRémi Verschelde
Update embree to 3.13.5
2022-11-25Update embree to 3.13.5DeeJayLSP
2022-11-25Merge pull request #69123 from queezle42/queezle42/masterRémi Verschelde
Fix GLAD-related build problems on Linux
2022-11-25Merge pull request #67511 from neikeq/issue-66060Rémi Verschelde
C#: Load assemblies as collectible only in the Godot editor
2022-11-25C#: Optimize Variant conversion callbacksIgnacio Roldán Etcheverry
These callbacks are used for marshaling by callables and generic Godot collections. C# generics don't support specialization the way C++ templates do. I knew NativeAOT could optimize away many type checks when the types are known at compile time, but I didn't trust the JIT would do as good a job, so I initially went with cached function pointers. Well, it turns out the JIT is also very good at optimizing in this scenario, so I'm changing the methods to do the conversion directly, rather than returning a function pointer for the conversion. The methods were moved to `VariantUtils`, and were renamed from `GetFromVariantCallback/GetToVariantCallback` to `ConvertTo/CreateFrom`. The new implementation looks like it goes through many `if` checks at runtime to find the right branch for the type, but in practice it works pretty much like template specialization. The JIT only generates code for the relevant branch. Together with inlining, the result is very close or the same as doing the conversion manually: ```cs godot_variant variant; int foo = variant.Int; int bar = VariantUtils.ConvertTo<int>(variant); ``` If the type is a generic Godot collection, the conversion still goes through a function pointer call. The new code happens to be much shorter as well, with the file going from 1057 lines to 407. Side note: `Variant.cs` was mistakenly created in the wrong folder, so I moved it to the `Core` folder.
2022-11-25Fix GLAD-related build problems on LinuxJens Nolte
- Use gl.h provided by GLAD in the OpenXR module - Use non-EXT variants of some OpenGL defines - Remove libGL-related code paths
2022-11-25C#: Add Projection documentationRaul Santos
- Add documentation to Projection type - Reorder Projection members to be consistent with other C# types
2022-11-24Merge pull request #69134 from jquinl/export_range_int_fixRémi Verschelde
GDScript: Properly respect `int` type hint for `@export_range`
2022-11-24GDScript: Properly respect `int` type hint for `@export_range`unknown
Fixes #69104. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-11-24Ensure class name is printed in STATIC_CALLED_ON_INSTANCE warningclayjohn
2022-11-24Merge pull request #69127 from KoBeWi/redUNDOntRémi Verschelde
Cleanup remaining EditorUndoRedoManager usages
2022-11-24Cleanup remaining EditorUndoRedoManager usageskobewi
2022-11-24Merge pull request #69125 from raulsntos/dotnet/bezier_derivativeRémi Verschelde
C#: Implement BezierDerivative
2022-11-24Merge pull request #69111 from TokageItLab/put-together-interpolationsRémi Verschelde
Refactor interpolating functions in some classes to use `Math` class
2022-11-24Merge pull request #69083 from fire/abstract_gltf_materialRémi Verschelde
Cache materials in gltf as the abstract class of Material in GLTFDocument
2022-11-24Cache materials in gltf as the abstract class of MaterialK. S. Ernest (iFire) Lee
Use the abstract material class instead of BaseMaterial3D. This allows inserting ShaderMaterials into gltf. Like in VRM.
2022-11-24C#: Implement BezierDerivativeRaul Santos
Adds `BezierDerivative` method to Mathf, Vector2 and Vector3 (already exposed in Core).
2022-11-24Refactor interpolating functions in some classes to use Math classSilc Renew
2022-11-24GDScript: Only check if ignoring warnings in debug buildRémi Verschelde
2022-11-24Merge pull request #68023 from rsjtdrjgfuzkfg/picoRémi Verschelde
Partial support for Pico 4
2022-11-23Merge pull request #69048 from akien-mga/thorvg-better-errorsRémi Verschelde
ImageLoaderSVG: Improve error reporting
2022-11-23Merge pull request #68985 from adamscott/fix-godot#68977-constant-parametersRémi Verschelde
Fix parameters that are considered as constants
2022-11-23Merge pull request #68580 from rhofour/fix-source-generationRémi Verschelde
First attempt at fully qualifying the default values of C# properties.
2022-11-23[godot#68977] Fix constants parametersAdam Scott
2022-11-23ImageLoaderSVG: Improve error reportingRémi Verschelde
2022-11-23Merge pull request #69022 from RedMser/unregister-gltfdocextRémi Verschelde
Add unregister for `GLTFDocumentExtension`
2022-11-22Fully qualify C# default values in exported fields.R. Alex Hofer
This avoids issues when the default values rely on using namespaces.
2022-11-22Add unregister for GLTFDocumentExtensionRedMser
2022-11-22Merge pull request #64250 from raulsntos/openxr-string-arraysRémi Verschelde
Expose string array properties in OpenXR module as PackedStringArray
2022-11-22Merge pull request #68948 from KoBeWi/eeny_meeny_miny_moeRémi Verschelde
Fill random docs
2022-11-22Fill random docskobewi
2022-11-22GDScript: Don't warn about RETURN_VALUE_DISCARDED by defaultRémi Verschelde
This happens too often with normal usage of the API. The warning can still be useful to find actual bugs where discarding the return value wasn't intentional, but this should stay enabled manually, at least until we either improve the API to remove false positives, or improve the warning (e.g. to only warn about unused return value on const functions).
2022-11-22Merge pull request #68581 from oganm/oganm/masterRémi Verschelde
fix typo in ZIPReader doc
2022-11-22Merge pull request #68970 from Chaosus/gds_fix_lambda_signalRémi Verschelde
Fix using signals in lambda functions
2022-11-22Fix using signals in lambda functionsYuri Rubinsky
2022-11-22Merge pull request #68987 from ↵Rémi Verschelde
adamscott/fix-godot#61386-autoload-scenes-implicit-types Fix autoload scenes implicit types
2022-11-22Merge pull request #68972 from adamscott/fix-godot#68971-cached-sceneRémi Verschelde
Fetch cached scene if it exists in `GDScriptCache::get_packed_scene()`
2022-11-22Merge pull request #68911 from souplamp/return-value-discarded-errorRémi Verschelde
Clarify what happens when return value is discarded in GDScript warning text
2022-11-21[godot#61386] Fix autoload scenes implicit typesAdam Scott
2022-11-21change RETURN_VALUE_DISCARDED GDScript warn textsouplamp
changed RETURN_VALUE_DISCARDED GDscript warning text to mention how the return value of a function is discarded; update GDScript parser warning test to include new warning text.