summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-03Merge pull request #69523 from m4gr3d/fix_navigation_control_default_mainRémi Verschelde
Enable the navigation controls for touchscreen by default
2022-12-03Merge pull request #69239 from xiongyaohua/fix_69220Rémi Verschelde
Fix `Curve3D::get_closest_point()` broken
2022-12-03Merge pull request #67751 from ↵Rémi Verschelde
touilleMan/gdextension-fix-gdnative-types-const-qualifier Fix const qualifier for parameters in GDExtension api functions
2022-12-03Fix Curve3D::get_closest_point() brokenYaohua Xiong
The problem is caused by calling adaptive tessellation baking function by mistake, which produce too few points for straight lines. Calling the even length tessellation fix the problem. The code for `get_closest_point()` and `get_closest_offset()` are also updated. They used to assume bake interval to be exact, which is no longer true. The out dated document for `get_closest_point()` is also updated.
2022-12-02Enable the navigation controls for touchscreen by defaultFredia Huya-Kouadio
2022-12-02Merge pull request #69515 from Error-In-Code/basematerial3d-doc-cleanupClay John
BaseMaterial3D Docs: Fix wrong descriptions on roughness and refraction texture channels
2022-12-02Make Roughness and Refraction not mention AO[Error:27]
Removes the mentions of ambient occlusion in the descriptions and replaces them with the appropriate texture channel.
2022-12-02Fix const qualifier for parameters in GDExtension api functionsEmmanuel Leblond
2022-12-02Merge pull request #69498 from raulsntos/dotnet/float64Ignacio Roldán Etcheverry
C#: Always convert float Variants to System.Double
2022-12-02C#: Always convert float Variants to System.DoubleRaul Santos
Godot floats are always 64-bit. The real_t feature only affects vectors, not scalars.
2022-12-02Merge pull request #69391 from NeilKleistGao/slnRémi Verschelde
Fix C# Solution Directory Project Settings
2022-12-02Merge pull request #69428 from neikeq/noRémi Verschelde
C#: Cleanup of Marshaling methods
2022-12-02Merge pull request #69484 from akien-mga/scons-gcc-clang-strip-non-debugRémi Verschelde
SCons: Strip symbol table for builds with `debug_symbols=no`
2022-12-02Fix C# solution directory settingsNeilKleistGao
Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
2022-12-02C#: Cleanup Variant marshaling code in source/bindings generatorsIgnacio Roldán Etcheverry
This change aims to reduce the number of places that need to be changed when adding or editing a Godot type to the bindings. Since the addition of `Variant.From<T>/As<T>` and `VariantUtils.CreateFrom<T>/ConvertTo<T>`, we can now replace a lot of the previous code in the bindings generator and the source generators that specify these conversions for each type manually. The only exceptions are the generic Godot collections (`Array<T>` and `Dictionary<TKey, TValue>`) which still use the old version, as that one cannot be matched by our new conversion methods (limitation in the language with generics, forcing us to use delegate pointers). The cleanup applies to: - Bindings generator: - `TypeInterface.cs_variant_to_managed` - `TypeInterface.cs_managed_to_variant` - Source generators: - `MarshalUtils.AppendNativeVariantToManagedExpr` - `MarshalUtils.AppendManagedToNativeVariantExpr` - `MarshalUtils.AppendVariantToManagedExpr` - `MarshalUtils.AppendManagedToVariantExpr`
2022-12-02C#: Replace most conversions between Variant and System.ObjectIgnacio Roldán Etcheverry
This commit replaces most usages of `ConvertManagedObjectToVariant` and `ConvertVariantToManagedObjectOfType`, by using the `Godot.Variant` struct instead of `System.Object`. The most notable change is to the `GetGodotPropertyDefaultValues` method that's generated for scripts. The dictionary it returns now stores `Godot.Variant` values. Remaining usages are: - The `DelegateUtils` class, for the serialization of closure display classes during assembly reloading by the editor. These display classes are compiler generated classes to store values captured by a closure. Since it's generated by the compiler, the only way we have to access the fields is through reflection. This leads to using `System.Object`. - Converting parameters when invoking constructors from the engine. This will be replaced with source generators in the future. - Legacy support for old `GetGodotPropertyDefaultValues` return values. We need to keep supporting the old version of this generated method for some time. Otherwise, if loading a project built with the previous version, it could lead to the loss of exported property values. Ideally, we should remove this legacy support before a stable release.
2022-12-02SCons: Strip symbol table for builds with `debug_symbols=no`Rémi Verschelde
This is equivalent to calling `strip` on the resulting binary, which is what we do for official builds. This applies for GCC/Clang. For MSVC `/DEBUG:NONE` should already be the default.
2022-12-02Merge pull request #69380 from bruvzg/mac_max_wsRémi Verschelde
[macOS] Improve maximized and non-resizable modes handling.
2022-12-02Merge pull request #69483 from akien-mga/openxr-3d-onlyRémi Verschelde
SCons: Disable openxr module with disable_3d=yes
2022-12-02Merge pull request #68870 from dsnopek/master-webxr-inputRémi Verschelde
Get WebXR fully working in Godot 4!
2022-12-02Merge pull request #61958 from jtnicholl/animation_connectionsRémi Verschelde
Add `animation_changed` signal to `AnimationLibrary`, have `AnimationPlayer` connect to it instead of `Animation`'s `changed`
2022-12-02Merge pull request #69336 from TokageItLab/get-anim-keys-more-exactlyRémi Verschelde
Refactor process of animation to retrive keys more exactly
2022-12-02Merge pull request #69475 from bruvzg/rtl_fx_idxRémi Verschelde
[RichTextEffect] Restore missing `relative_index` property.
2022-12-02Merge pull request #69474 from TokageItLab/fix-animation-cache-signalRémi Verschelde
Fix animation signal `caches_cleared` firing timing
2022-12-02Merge pull request #69448 from BastiaanOlij/fix_etc_rgba_bgra_issueRémi Verschelde
ETCPAK expects BGRA data for ETC
2022-12-02SCons: Disable openxr module with disable_3d=yesRémi Verschelde
Fixes #69470.
2022-12-02[RichTextEffect] Restore missing `relative_index` property.bruvzg
2022-12-02Fix animation signal caches_cleared firing timingSilc Renew
2022-12-01Get WebXR fully working in Godot 4!David Snopek
2022-12-02C#: Remove `ConvertVariantToManagedObject`Ignacio Roldán Etcheverry
Its two usages were: - The Array `ICollection.CopyTo` implementation. It's possible that this class shouldn't be implementing the non-generic `ICollection`, but this commit doesn't change that. The new implementation stores the elements as boxed `Variant` values. - The `Variant.Obj` property. I'm not sure if this property's existence is justified, but for now I rewrote it as a simpler version of `ConvertVariantToManagedObject`.
2022-12-02Merge pull request #67023 from raulsntos/dotnet/fix-signal-callback-generationIgnacio Roldán Etcheverry
C#: Fix signature of generated signal callbacks
2022-12-02Merge pull request #69166 from souplamp/icon-annotation-not-workingYuri Sizov
Update docs to clarify `@icon` only works with global script classes
2022-12-01Merge pull request #69430 from Rindbee/fix-clip-contentsRémi Verschelde
Fix child nodes still being drawn when the visible area of a control with `clip_contents` enabled is `0`
2022-12-01Merge pull request #69344 from DeeJayLSP/update_thorvgRémi Verschelde
Update thorvg to 0.8.3
2022-12-01Merge pull request #69325 from clayjohn/GLES3-skeletonsRémi Verschelde
Add Skeletons and Blend Shapes to the OpenGL renderer
2022-12-01Update docs to mention `@icon` only works with global script classessouplamp
Update the docs to clarify that the `@icon` annotation does not work when only attaching a script to a node, and clarify that the script itself must be a globally accessible script type.
2022-12-01Merge pull request #69364 from m4gr3d/add_navigation_controls_mainRémi Verschelde
Add navigation control to the node3d editor viewport
2022-12-01Merge pull request #69427 from TokageItLab/remove-wrong-method-root-posRémi Verschelde
Remove unneeded calc in root motion
2022-12-01Merge pull request #67660 from Rindbee/improve-setter-for-RangeRémi Verschelde
Improve validation when setting `max`/`min`/`page` in `Range`
2022-12-01Merge pull request #69443 from KoBeWi/meta_never_diesRémi Verschelde
Restore metadata to script create dialog
2022-12-01Merge pull request #69423 from KoBeWi/parentureRémi Verschelde
Improve parent signature error
2022-12-01Merge pull request #64427 from ↵Rémi Verschelde
touilleMan/gdextension-skip-undefined-field-in-properties [GDExtension] Skip unset getter/setter/index fields in class property
2022-12-01Merge pull request #64360 from ↵Rémi Verschelde
touilleMan/gdextension-correct-rect2-members-offsets-declaration [GDExtension] Correct Rect2 members offsets declaration in extension_api.json generator
2022-12-01Merge pull request #69401 from IceflowRE/rename_theme_cache_namesRémi Verschelde
Rename Tree theme cache separation names
2022-12-01Merge pull request #69403 from KoBeWi/gdrequiredvirutalcallnoifRémi Verschelde
Simplify GDVIRTUAL_REQUIRED_CALL calls
2022-12-01Merge pull request #68632 from m4gr3d/fix_input_event_screen_drag_routing_mainRémi Verschelde
Fix routing of InputEventScreenDrag events to Control nodes
2022-12-01Merge pull request #68481 from dalexeev/gds-fix-dyn-arg-def-valRémi Verschelde
GDScript 2.0: Fix shift due to skip of non-constant default argument values
2022-12-02ETCPAK expects BGRA data for ETCBastiaan Olij
2022-12-01Fix invalid metadata names in script create dialogkobewi
2022-12-01Revert "Fix "Script Create" dialog errors with metadata"kobewi
This reverts commit bb5198a5ac92a6fe699751df9bb9c09109a2955a.