Rémi Verschelde
19e2f30a55
Merge pull request #64860 from raulsntos/dotnet/sync-math
...
Sync C# cubic interpolation with core
2022-08-27 19:01:37 +02:00
Rémi Verschelde
b5294b5759
Merge pull request #64922 from akien-mga/dotnet-fix-app-host-version-detection
...
.NET: Change NETCore.App version detection to use highest match
2022-08-27 18:58:40 +02:00
Rémi Verschelde
35af2b0edd
Merge pull request #64921 from bruvzg/win_arm
...
[Windows] Improve build environment detection, add support for Windows on ARM.
2022-08-27 18:46:54 +02:00
Rémi Verschelde
09086b0bb0
Merge pull request #64651 from MewPurPur/fix-globalfunc-highlighting
...
Add new highlighting color for `@GDScript` and `@GlobalScope` functions
2022-08-27 18:44:14 +02:00
Raul Santos
ebe008d41b
C#: Fix byteCount in `NativeMemory.Alloc`
...
`NativeMemory.Alloc` takes the byte count as parameter, this is
calculated by multiplying the element size in bytes by the length
of the array.
2022-08-27 17:35:53 +02:00
bruvzg
8dab4a2aa3
[Windows] Improve build environment detection, add support for Windows on ARM.
2022-08-27 16:10:53 +03:00
Raul Santos
f64b845514
C#: Add `CubicInterpolateAngle`
2022-08-27 12:28:54 +02:00
Raul Santos
623f4a52ca
C#: Add `CubicInterpolateInTime`
2022-08-27 12:27:11 +02:00
Raul Santos
4c5cefe4fe
C#: Rename and fix `Quaternion.SphericalCubicInterpolate`
2022-08-27 12:26:38 +02:00
Raul Santos
f72b7a1595
C#: Fix `Quaternion.CubicSlerp`
2022-08-27 12:26:38 +02:00
Raul Santos
8ad0ef75b8
C#: Add `Exp` and `Log` to Quaternion
2022-08-27 12:26:38 +02:00
Raul Santos
b526a0d824
C#: Add `GetAngle` and `GetAxis` to Quaternion
2022-08-27 12:26:38 +02:00
Raul Santos
961a086d20
C#: Fix `Transform3D` interpolation and add spherical interpolation
2022-08-27 12:26:38 +02:00
Raul Santos
b35fcf3620
C#: Add missing match check in `Quaternion.Slerpni`
2022-08-27 12:26:37 +02:00
Rémi Verschelde
488c501633
Merge pull request #64942 from paulloz/cs-fix-color-names
...
C#: Fix dictionary keys in Colors
2022-08-27 08:10:07 +02:00
Josh Jones
3dd59013f4
Added node for Navigation links
2022-08-26 22:05:15 -07:00
Raul Santos
d35c58507c
Fix C# style with `dotnet format`
2022-08-27 03:22:31 +02:00
Micky
ef5b9a06a9
Rename `hint_tooltip` to `tooltip_text` & setget
...
`hint_tooltip` -> `tooltip_text`
`set_tooltip` -> `set_tooltip_text`
`_get_tooltip` -> `get_tooltip_text`
Updates documentation, too.
2022-08-27 01:35:01 +02:00
Paul Joannon
4c05b95857
C#: Fix dictionary keys in Colors
2022-08-26 23:27:45 +02:00
Rémi Verschelde
f9f2446972
Merge pull request #64367 from Mickeon/rename-var-to-str
...
Rename `str2var` to `str_to_var` and similar
2022-08-26 23:04:06 +02:00
Yuri Sizov
6320a0fc18
Add ThemeDB, expose previously static Theme methods
2022-08-26 19:23:05 +03:00
Raul Santos
79f9f59a87
Fix various C# exceptions
...
- Replace `IndexOutOfRangeException` with `ArgumentOutOfRangeException`
- Replace `Exception` with a more specific exception
- Add the parameter name to argument exception
- Update documentation for methods that throw exceptions
- Use `StringBuilder` to build exception messages
- Ensure exception messages end with a period
2022-08-26 16:56:00 +02:00
Rémi Verschelde
1c97dde78f
Merge pull request #64894 from fabriceci/remove-dynamic-bodies-name
2022-08-26 16:16:32 +02:00
Rémi Verschelde
c54125d17b
Merge pull request #64864 from aaronfranke/noise-texture-2d
2022-08-26 16:11:31 +02:00
Micky
59e11934d8
Rename `str2var` to `str_to_var` and similar
...
Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too.
- `var2str` -> `var_to_str`
- `str2var` -> `str_to_var`
- `bytes2var` -> `bytes_to_var`
- `bytes2var_with_objects` -> `bytes_to_var_with_objects`
- `var2bytes` -> `var_to_bytes`
- `var2bytes_with_objects` -> `var_to_bytes_with_objects`
- `linear2db` -> `linear_to_db`
- `db2linear` -> `db_to_linear`
- `deg2rad` -> `deg_to_rad`
- `rad2deg` -> `rad_to_deg`
- `dict2inst` -> `dict_to_inst`
- `inst2dict` -> `inst_to_dict`
2022-08-26 14:58:22 +02:00
Rémi Verschelde
3d43ffdb5b
.NET: Change NETCore.App version detection to use highest match
...
`libnethost.a` detection failed on my Linux system (Mageia 9, using Fedora 36
dotnet repos), because it used the first match which isn't the one matching
the rest of the SDK:
```
$ dotnet --list-runtimes
Microsoft.AspNetCore.App 3.1.28 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.28 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
```
No idea why I still have 6.0.5 installed but it should pick the highest I guess.
2022-08-26 13:19:01 +02:00
fabriceci
f8cc88fab3
Restore RigidBody2/3D, SoftBody names in physics
2022-08-26 12:26:25 +02:00
Rémi Verschelde
dc4193b478
Merge pull request #64877 from Faless/mp/4.x_enet_remote_addr
2022-08-26 12:15:47 +02:00
Rémi Verschelde
7013c68619
Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0
2022-08-26 11:59:07 +02:00
Fabio Alessandrelli
426fe7ebdd
[Net] Expose get_remote_address get_remote_port.
2022-08-26 10:47:55 +02:00
Ignacio Roldán Etcheverry
e8ce36628f
Merge pull request #64901 from raulsntos/dotnet/equals
...
C#: Use pattern matching to simplify `Equals`
2022-08-26 08:33:52 +02:00
Raul Santos
9c9b8fcd34
Remove `[Signal]` attribute from events
...
- Remove event as a valid target of `SignalAttribute`
- Stop adding the `[Signal]` attribute to events in bindings_generator
- Make bindings_generator use the `EventHandler` suffix to be consistent with the C# source generator
- Remove obsolete comment about the signal's delegate name
2022-08-26 00:53:45 +02:00
Ignacio Roldán Etcheverry
a8476c04f4
Merge pull request #64852 from paulloz/dotnet6-export-category-attribute
...
C#: Preserve order of exported fields/categories
2022-08-25 23:26:03 +02:00
Rémi Verschelde
85ed9eac6f
Merge pull request #64857 from MewPurPur/tweak-stringname-color
2022-08-25 22:44:22 +02:00
Rémi Verschelde
6d196c1ce3
Merge pull request #64898 from neikeq/dotnet-fix-find-arch
2022-08-25 22:18:38 +02:00
Paul Joannon
cf99d92a39
C#: Preserve order of exported fields/categories
2022-08-25 20:39:57 +02:00
Ignacio Roldán Etcheverry
09af583e10
C#: Fix buildsystem when `dotnet --info` does not specify arch
...
For some installations the architecture information is not printed.
2022-08-25 20:05:42 +02:00
Ignacio Roldán Etcheverry
f03ac21ea8
Merge pull request #52815 from magian1127/temp3
...
C# Generate SnakeName const
2022-08-25 20:02:16 +02:00
Rémi Verschelde
af88438c71
Merge pull request #64354 from Mickeon/rename-navigation-distance
2022-08-25 18:35:23 +02:00
Raul Santos
f8ceceed15
Various C# documentation improvements
...
Fixes wrong/invalid documentation and add documentation to some OS members.
2022-08-25 17:09:32 +02:00
Magian
c371d1bac9
C# Generate StringName(SnakeName) for all class members
2022-08-25 23:07:20 +08:00
VolTer
88ad758b41
Added highlighting color for GDScript and GlobalScope functions
2022-08-25 17:00:16 +02:00
Rémi Verschelde
0cf0e96038
Merge pull request #64776 from YuriSizov/import-images-moar-flags
2022-08-25 16:51:26 +02:00
Rémi Verschelde
c7eb423eeb
Merge pull request #55778 from aaronfranke/use-arch-btw
...
[skip ci]
2022-08-25 13:03:48 +02:00
Ignacio Roldán Etcheverry
8769088f48
Merge pull request #64869 from bruvzg/dotnet_arch
...
[macOS] Check .NET binary architecture, and search for the cross compile SDK in the subfolders.
2022-08-25 11:25:08 +02:00
Aaron Franke
27b0f18275
Unify bits, arch, and android_arch into env["arch"]
...
Fully removes the `bits` option and adapts the code that relied on it.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-08-25 11:19:20 +02:00
VolTer
73bbc61eb4
Tweaked StringName highlighting color
2022-08-25 08:32:14 +02:00
bruvzg
0a427cf159
[macOS] Check .NET binary architecture, and search for the cross compile SDK in the subfolders.
2022-08-25 09:32:07 +03:00
Rémi Verschelde
6ffbec9e49
Merge pull request #64731 from raulsntos/dotnet6-variant-generics-analyzer
...
C#: Add `MustBeVariant` attribute and analyzer
2022-08-25 07:34:05 +02:00
Rémi Verschelde
e1266d2f35
Merge pull request #64781 from raulsntos/csharp_children
...
Add `includeInternal` to C# NodeExtensions and avoid printing errors in `GetChildOrNull`
2022-08-25 07:32:50 +02:00
Rémi Verschelde
0569738a6e
Merge pull request #64849 from jtnicholl/fix_blender_check
...
Fix Blender file path check to require a directory
2022-08-25 07:31:43 +02:00
Aaron Franke
394d058420
Rename 2D NoiseTexture to NoiseTexture2D
2022-08-24 22:44:42 -05:00
Raul Santos
6468f9b37c
Add MustBeVariant attribute and analyzer
...
- MustBeVariant attribute can be used to enforce that generic types must
be a marshable from/to Variant.
- Also renames all diagnostic ids to be valid unicode identifiers.
2022-08-25 01:47:40 +02:00
Jonathan Nicholl
6ff41a3fcd
Fix Blender file path check to require a directory
2022-08-24 16:08:01 -04:00
Aaron Franke
09551c3d2b
Remove mentions of the Server platform from the Mono module
2022-08-24 14:56:40 -05:00
Ignacio Roldán Etcheverry
686286ed9d
Merge pull request #64742 from zaevi/csharp_add_grouping_attributes
...
C#: Add grouping attributes for properties.
2022-08-24 20:09:47 +02:00
Ignacio Roldán Etcheverry
e172b1aa91
Merge pull request #64743 from raulsntos/dotnet6-signal-analyzer
...
Improve C# signal analyzer errors
2022-08-24 19:28:47 +02:00
Rémi Verschelde
c8c0f21880
Merge pull request #64780 from YuriSizov/editor-color-conversion-map
2022-08-24 16:49:51 +02:00
Rémi Verschelde
4698dc67b5
Merge pull request #64082 from KoBeWi/array3k
2022-08-24 16:05:59 +02:00
Rémi Verschelde
a4a4402201
Merge pull request #64822 from akien-mga/sunset-visual-script
2022-08-24 15:41:57 +02:00
Yuri Sizov
c78cbb523f
Extract editor color map and simplify SVG color conversion
2022-08-24 15:59:14 +03:00
Raul Santos
a0da258401
Use pattern matching to simplify `Equals`
...
- Simplify and unify `Equals` implementation of C# struct types
- Also add pattern matching to replace a cast in `DebuggingUtils`
2022-08-24 14:15:33 +02:00
kobewi
f7f4873ed0
Replace Array return types with TypedArray 3
2022-08-24 12:53:36 +02:00
Rémi Verschelde
b1f392c25e
Remove VisualScript module for 4.0
...
As announced in https://godotengine.org/article/godot-4-will-discontinue-visual-scripting ,
Godot maintainers have agreed to discontinue the current implementation of
our VisualScript language.
The way it had been designed was not user-friendly enough and we did not
succeed in improving its usability to actually make it a good low-code
solution for users who need one.
So we prefer to remove it for Godot 4.0 and leave the door open for new,
innovative ideas around visual scripting, to be developed as plugins or
extensions now that Godot provides sufficient functionality for this
(notably via GDExtension and the godot-cpp C++ bindings).
The current module has been moved to a dedicated repository (with full Git
history extracted with `git filter-branch`):
https://github.com/godotengine/godot-visual-script
It can still be compiled as a C++ module (for now, but will likely require
work to be kept in sync with the engine repository), but our hope is that
contributors will port it to GDExtension (which is quite compatibile with
the existing C++ module code when using the godot-cpp C++ bindings).
2022-08-24 12:08:17 +02:00
Raul Santos
22a3c585c2
Update C# named colors to use HEX codes
2022-08-24 10:46:06 +02:00
Raul Santos
665621aa1b
Avoid printing an error in GetChildOrNull
...
`GetChildOrNull` won't print an error when the given index is out of range,
similar to how the LINQ `ElementAtOrDefault` method works.
2022-08-24 10:10:47 +02:00
Rémi Verschelde
711e372aad
Merge pull request #64787 from akien-mga/libwebp-1.2.4
...
libwebp: Sync with upstream 1.2.4
2022-08-24 09:51:49 +02:00
Ignacio Roldán Etcheverry
b438859d04
Merge pull request #64727 from raulsntos/csharp-remove-ctors
...
Remove copy constructors in C# structs
2022-08-24 08:28:58 +02:00
Rémi Verschelde
91e5f48ea7
Merge pull request #64009 from KoBeWi/arrayy_lmao
...
Replace Array return types with TypedArray (part 2)
2022-08-24 08:18:56 +02:00
Ignacio Roldán Etcheverry
4d9ddc8ab3
Merge pull request #64773 from raulsntos/dotnet6- 🦭
...
C#: Seal classes that can't be inherited from
2022-08-24 08:01:27 +02:00
kobewi
1abdffe7a0
Replace Array return types with TypedArray 2
2022-08-23 23:21:32 +02:00
Rémi Verschelde
e5e34f21fc
libwebp: Sync with upstream 1.2.4
...
Changes: https://chromium.googlesource.com/webm/libwebp/+/1.2.4/NEWS
2022-08-23 19:05:53 +02:00
Raul Santos
7924d643e5
Add `includeInternal` to C# NodeExtensions and fix get_child documentation
...
Node methods in C# extended to use generics
now have the optional parameter `includeInternal`
like their non-generic equivalents.
Also, fixed a typo in the `Node.get_child` documentation.
2022-08-23 18:19:44 +02:00
Yuri Sizov
672e9d6868
Make `ImageLoader` take bit field flags
2022-08-23 14:39:01 +03:00
Raul Santos
d6574f025b
Seal classes that can't be inherited from
2022-08-23 11:08:59 +02:00
Rémi Verschelde
d5606503b4
Merge pull request #64762 from neikeq/csharp-dangling-callable-code
2022-08-23 11:08:28 +02:00
Rémi Verschelde
155fa4e156
Merge pull request #64758 from jtnicholl/blend_fbx_warnings
2022-08-23 10:29:28 +02:00
Rémi Verschelde
62c3e72b6f
Merge pull request #63959 from KoBeWi/typo_arrray
...
Replace Array return types with TypedArray (part 1)
2022-08-23 08:52:13 +02:00
bruvzg
bcc3643989
Add font LCD sub-pixel anti-aliasing support.
2022-08-23 08:47:21 +03:00
Rémi Verschelde
7e4817a096
Merge pull request #64729 from raulsntos/csharp-xform-operator
...
C#: Replace `Xform` and `XformInv` with `*` operator
2022-08-23 07:47:09 +02:00
Rémi Verschelde
230225d360
Merge pull request #64744 from bruvzg/fix_mixed_font_color4
...
[4.x] Fix color modulation of the grayscale glyphs in font with mixed color / grayscale data.
2022-08-23 07:45:58 +02:00
Ignacio Roldán Etcheverry
bc12436f73
C#: Remove old Callable code left dangling after switch to .NET 6
2022-08-23 04:14:58 +02:00
Ignacio Roldán Etcheverry
ebd966acee
Merge pull request #64725 from raulsntos/dotnet6-assembly-exists
...
Avoid trying to load non-existent assembly
2022-08-23 02:47:55 +02:00
Jonathan Nicholl
d24b65b363
Update messages for missing FBX2glTF, add similar messages for Blender
2022-08-22 20:30:33 -04:00
kobewi
8be27dc59e
Replace Array return types with TypedArray
2022-08-22 22:42:36 +02:00
Rémi Verschelde
b8a64313f0
Merge pull request #59564 from KoBeWi/FINALLY,_ULTIMATE_UNDO_REDO
2022-08-22 22:37:33 +02:00
Rémi Verschelde
09b012a409
Merge pull request #64400 from aaronfranke/gltf-fix-camera
2022-08-22 22:23:08 +02:00
Rémi Verschelde
1f61d47766
Merge pull request #64339 from YuriSizov/core-multilevel-validate-property
2022-08-22 21:39:48 +02:00
Raul Santos
0b8b733d77
C#: Replace `Xform` and `XformInv` with `*` operator
...
- In cases where both `Xform`/`XformInv` and the `*` operator were
implemented the `Xform`/`XformInv` methods were removed in favor of the
`*` operator.
- In cases where the `Xform`/`XformInv` existed but not the `*` operator,
the `Xform`/`XformInv` methods were replaced with the `*` operator.
- In cases where no method existed, a new `*` operator has been
implemented to support the same operations that are supported in GDScript.
- Fixes the `Transform.Xform` and `Transform.XformInv` with `Rect2`
implementation to use a zero `Rect2` size to start expanding from
(which is how it's implemented in C++).
2022-08-22 21:11:24 +02:00
bruvzg
1c5a50fac6
Fix color modulation of the grayscale glyphs in font with mixed color / grayscale data.
2022-08-22 21:01:22 +03:00
Raul Santos
3b201c2b04
Improve C# signal analyzer errors
...
Report the specific parameters that are not supported.
2022-08-22 19:44:05 +02:00
Zae
431a28fe19
C#: Add grouping attributes for properties.
2022-08-23 01:23:45 +08:00
kobewi
ece3df3938
Add per-scene UndoRedo
2022-08-22 18:05:10 +02:00
Yuri Sizov
1a24c9e14b
Make `_validate_property` a multilevel method
2022-08-22 18:35:11 +03:00
Rémi Verschelde
5193332d10
Merge pull request #64343 from TokageItLab/priority-ph
2022-08-22 17:31:23 +02:00
Rémi Verschelde
fdc36ad082
Merge pull request #64553 from RedMser/fix-property-validation-refactor
2022-08-22 16:54:47 +02:00
Rémi Verschelde
ff7c10f709
Merge pull request #57297 from rafallus/orthogonal_index
...
Expose `Basis::set_orthogonal_index` as a GridMap method
2022-08-22 15:59:20 +02:00
Yuri Sizov
3cd3ec62e2
Merge pull request #37168 from theoway/ChangeNodeTypeDialog
...
Changed the title of change node type dialog
2022-08-22 15:42:28 +03:00
Raul Santos
c56b157c61
Avoid trying to load non-existent assembly
...
If the project assembly does not exist, return `false` directly instead
of trying to load it.
This prevents the `System.InvalidOperationException` thrown for failing
to locate managed application.
2022-08-22 11:48:12 +02:00
Raul Santos
29894e9c1a
Remove copy constructors in C# structs
2022-08-22 11:30:17 +02:00
Ignacio Roldán Etcheverry
9c34a02191
C#: Add module README
...
This should clarify development workflow with the NuGet packages.
2022-08-22 03:36:52 +02:00
Ignacio Roldán Etcheverry
2c180f62d9
C#: Replace P/Invoke with delegate pointers
...
- Moves interop functions to UnmanagedCallbacks struct that
contains the function pointers and is passed to C#.
- Implements UnmanagedCallbacksGenerator, a C# source generator that
generates the UnmanagedCallbacks struct in C# and the body for the
NativeFuncs methods (their implementation just calls the function
pointer in the UnmanagedCallbacks). The generated methods are needed
because .NET pins byref parameters of native calls, even if they are
'ref struct's, which don't need pinning. The generated methods use
`Unsafe.AsPointer` so that we can benefit from byref parameters
without suffering overhead of pinning.
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2022-08-22 03:36:52 +02:00
Ignacio Roldán Etcheverry
186d7f6239
C#: Remove IL post-processor build dependency
...
We were using it to workaround a limitation of `Unsafe.AsPointer` and
`ref struct`s. However, we can get the same result with some tricks,
since we have control over the declaration of these structs.
2022-08-22 03:36:52 +02:00
Ignacio Roldán Etcheverry
1bf4397e5b
C#: Use custom project setting for C# project files name
...
The setting is initially assigned the name of the Godot project,
but it's kept freezed to prevent issues when renaming the Godot
project.
The user can always rename the C# project and solution manually and
change the setting to the new name.
2022-08-22 03:36:52 +02:00
Ignacio Roldán Etcheverry
0c30c678f0
C#: Re-introduce generic Godot Array and Dictionary
...
This new version does not support the following type arguments:
- Generic types
- Array of Godot Object (Godot.Object[]) or derived types
The new implementation uses delegate pointers to call the Variant
conversion methods. We do type checking only once in the static
constructor to get the conversion delegates.
Now, we no longer need to do type checking every time, and we no
longer have to box value types.
This is the best implementation I could come up with, as C# generics
don't support anything similar to C++ template specializations.
2022-08-22 03:36:52 +02:00
Ignacio Roldán Etcheverry
3123be2384
C#: Array, Dictionary and marshaling refactoring
...
- Array and Dictionary now store `Variant` instead of `System.Object`.
- Removed generic Array and Dictionary.
They cause too much issues, heavily relying on reflection and
very limited by the lack of a generic specialization.
- Removed support for non-Godot collections.
Support for them also relied heavily on reflection for marshaling.
Support for them will likely be re-introduced in the future, but
it will have to rely on source generators instead of reflection.
- Reduced our use of reflection.
The remaining usages will be moved to source generators soon.
The only usage that I'm not sure yet how to replace is dynamic
invocation of delegates.
2022-08-22 03:36:52 +02:00
Ignacio Roldán Etcheverry
344f5028d4
C#: Add dedicated Variant struct, replacing System.Object
2022-08-22 03:36:52 +02:00
Ignacio Roldán Etcheverry
a9892f2571
C#: Add source generator for method list
2022-08-22 03:36:52 +02:00
Ignacio Roldán Etcheverry
97713ff77a
C#: Add source generator for signals as events
...
Changed the signal declaration signal to:
```
// The following generates a MySignal event
[Signal] public delegate void MySignalEventHandler(int param);
```
2022-08-22 03:36:52 +02:00
Ignacio Roldán Etcheverry
f033764ffe
C#: Refactor Array & Dictionary interface implementations
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
e235cef09f
C#: Re-implement assembly reloading with ALCs
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
d78e0a8426
C#: Make GodotSharp API a NuGet package
...
In the past, the Godot editor distributed the API assemblies and
copied them to project directories for projects to reference them.
This changed with the move to .NET 5/6. Godot no longer copies the
assemblies to project directories. However, the project Sdk still
tried to reference them from the same location.
From now on, the GodotSharp API is distributed as a NuGet package,
which the Sdk can reference.
Added an option to `build_assemblies.py` to copy all Godot NuGet
packages to an existing local NuGet source. This will be needed
during development, while packages are not published to a remote
NuGet repository.
This option also makes sure to remove packages of the same version
installed (~/.nuget/packages). Very useful during development, when
packages change, to make sure the package being used by a project is
the same we just built and not one from a previous build.
A local NuGet source can be created like this:
```
mkdir ~/MyLocalNuGetSource && \
dotnet nuget add source ~/MyLocalNuGetSource/ -n MyLocalNuGetSource
```
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
4b90d16250
C#: Initial NativeAOT support
...
This commit adds initial support for games exported as NativeAOT shared
libraries.
At this moment, the NativeAOT runtime is experimental. Additionally,
Godot is not trim-safe as it still makes some use of reflection.
For the time being, a rd.xml file is needed to prevent code triming:
```
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata ">
<Application>
<Assembly Name="GodotSharp" Dynamic="Required All" />
<Assembly Name="GAME_ASSEMBLY" Dynamic="Required All" />
</Application>
</Directives>
```
These are the csproj changes for publishing:
```
<PropertyGroup>
<NativeLib>Shared</NativeLib>
</PropertyGroup>
<ItemGroup>
<RdXmlFile Include="rd.xml" />
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="7.0.0-*" />
</ItemGroup>
```
More info:
- https://github.com/dotnet/runtimelab/blob/feature/NativeAOT/docs/using-nativeaot/compiling.md
- https://github.com/dotnet/runtimelab/tree/feature/NativeAOT/samples/NativeLibrary
- https://github.com/dotnet/runtimelab/blob/feature/NativeAOT/docs/using-nativeaot/rd-xml-format.md
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
18f805b3aa
C#: Upgrade to .NET 6 (5.0 -> 6.0)
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
e22dd3bc6a
C#: Static marshaling for bindings and source generators
...
Previously, we added source generators for invoking/accessing methods,
properties and fields in scripts. This freed us from the overhead of
reflection. However, the generated code still used our dynamic
marshaling functions, which do runtime type checking and box value
types.
This commit changes the bindings and source generators to include
'static' marshaling. Based on the types known at compile time, now
we generate the appropriate marshaling call for each type.
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
778007a358
C#: Re-introduce exception logging and error stack traces in editor
...
These two had been disabled while moving to .NET 5, as the previous
implementation relied on Mono embedding APIs.
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
67db89988d
C#: Ensure we only create one CSharpScript per type
...
Previously, for each scripts class instance that was created from code
rather than by the engine, we were constructing, configuring and
assigning a new CSharpScript.
This has changed now and we make sure there's only one CSharpScript
associated to each type.
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
92503ae8db
C#: Add source generator for properties and exports default values
...
The editor no longer needs to create temporary instances to get the
default values. The initializer values of the exported properties are
still evaluated at runtime. For example, in the following example,
`GetInitialValue()` will be called when first looks for default values:
```
[Export] int MyValue = GetInitialValue();
```
Exporting fields with a non-supported type now results in a compiler
error rather than a runtime error when the script is used.
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
88e367a406
C#/netcore: Add base desktop game export implementation
...
This base implementation is still very barebones but it defines the path
for how exporting will work (at least when embedding the .NET runtime).
Many manual steps are still needed, which should be automatized in the
future. For example, in addition to the API assemblies, now you also
need to copy the GodotPlugins assembly to each game project.
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
f88d8902cf
C#: Ensure native handles are freed after switch to .NET Core
...
Finalizers are longer guaranteed to be called on exit now that
we switched to .NET Core. This results in native instances leaking.
The only solution I can think of so far is to keep a list of all
instances alive to dispose when the AssemblyLoadContext.Unloading
event is raised.
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
4d710bf659
C#: Add initial implementation of source generator for script members
...
This replaces the way we invoke methods and set/get properties.
This first iteration rids us of runtime type checking in those
cases, as it's now done at compile time.
Later it will also stop needing the use of reflection. After that,
we will only depend on reflection for generic Godot Array and
Dictionary. We're stuck with reflection in generic collections
for now as C# doesn't support generic/template specialization.
This is only the initial implementation. Further iterations are
coming, specially once we switch to the native extension system
which completely changes the way members are accessed/invoked.
For example, with the native extension system we will likely need
to create `UnmanagedCallersOnly` invoke wrapper methods and return
function pointers to the engine.
Other kind of members, like event signals will be receiving the
same treatment in the future.
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
e5e7a795b1
C#: Code cleanup and greatly reduce use of C# pointers
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
f16c8e3759
Fix detection of .NET Sdk from snap and allow higher versions
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
315636e77c
C#: Fallback to `dotnet --info` to determine .NET RID
...
Some Linux distros use their distro name as the RID for directory names.
If the .NET Host directory cannot be found with the generic RID,
try to get the rid from `dotnet --info`.
The generic RID should still be the first choice. Some platforms like
Windows 10 define the RID as `win10-x64` but still use the generic
`win-x64` for directory names.
Co-authored-by: Lewis James <lewiji+github@gmail.com>
2022-08-22 03:36:51 +02:00
Ignacio Roldán Etcheverry
f9a67ee9da
C#: Begin move to .NET Core
...
We're targeting .NET 5 for now to make development easier while
.NET 6 is not yet released.
TEMPORARY REGRESSIONS
---------------------
Assembly unloading is not implemented yet. As such, many Godot
resources are leaked at exit. This will be re-implemented later
together with assembly hot-reloading.
2022-08-22 03:35:59 +02:00
Ignacio Roldán Etcheverry
513ee857a9
C#: Restructure code prior move to .NET Core
...
The main focus here was to remove the majority of code that relied on
Mono's embedding APIs, specially the reflection APIs. The embedding
APIs we still use are the bare minimum we need for things to work.
A lot of code was moved to C#. We no longer deal with any managed
objects (`MonoObject*`, and such) in native code, and all marshaling
is done in C#.
The reason for restructuring the code and move away from embedding APIs
is that once we move to .NET Core, we will be limited by the much more
minimal .NET hosting.
PERFORMANCE REGRESSIONS
-----------------------
Some parts of the code were written with little to no concern about
performance. This includes code that calls into script methods and
accesses script fields, properties and events.
The reason for this is that all of that will be moved to source
generators, so any work prior to that would be a waste of time.
DISABLED FEATURES
-----------------
Some code was removed as it no longer makes sense (or won't make sense
in the future).
Other parts were commented out with `#if 0`s and TODO warnings because
it doesn't make much sense to work on them yet as those parts will
change heavily when we switch to .NET Core but also when we start
introducing source generators.
As such, the following features were disabled temporarily:
- Assembly-reloading (will be done with ALCs in .NET Core).
- Properties/fields exports and script method listing (will be
handled by source generators in the future).
- Exception logging in the editor and stack info for errors.
- Exporting games.
- Building of C# projects. We no longer copy the Godot API assemblies
to the project directory, so MSBuild won't be able to find them. The
idea is to turn them into NuGet packages in the future, which could
also be obtained from local NuGet sources during development.
2022-08-22 03:35:59 +02:00
Ignacio Roldán Etcheverry
5e37d073bb
C#: Re-write GD and some other icalls as P/Invoke
2022-08-22 03:35:59 +02:00
Ignacio Roldán Etcheverry
9a51430441
C#: Re-write Array, Dictionary, NodePath, String icalls as P/Invoke
2022-08-22 03:35:59 +02:00
Ignacio Roldán Etcheverry
c4ccabd3fb
C#: Remove DynamicGodotObject/Object.DynamicObject
...
We are moving in the direction of no dynamic code generation,
so this is no longer desired.
The feature can still be easily implemented by any project that
still want it.
2022-08-22 03:35:59 +02:00
Ignacio Roldán Etcheverry
124fbf95f8
C#: Move marshaling logic and generated glue to C#
...
We will be progressively moving most code to C#.
The plan is to only use Mono's embedding APIs to set things at launch.
This will make it much easier to later support CoreCLR too which
doesn't have rich embedding APIs.
Additionally the code in C# is more maintainable and makes it easier
to implement new features, e.g.: runtime codegen which we could use to
avoid using reflection for marshaling everytime a field, property or
method is accessed.
SOME NOTES ON INTEROP
We make the same assumptions as GDNative about the size of the Godot
structures we use. We take it a bit further by also assuming the layout
of fields in some cases, which is riskier but let's us squeeze out some
performance by avoiding unnecessary managed to native calls.
Code that deals with native structs is less safe than before as there's
no RAII and copy constructors in C#. It's like using the GDNative C API
directly. One has to take special care to free values they own.
Perhaps we could use roslyn analyzers to check this, but I don't know
any that uses attributes to determine what's owned or borrowed.
As to why we maily use pointers for native structs instead of ref/out:
- AFAIK (and confirmed with a benchmark) ref/out are pinned
during P/Invoke calls and that has a cost.
- Native struct fields can't be ref/out in the first place.
- A `using` local can't be passed as ref/out, only `in`. Calling a
method or property on an `in` value makes a silent copy, so we want
to avoid `in`.
REGARDING THE BUILD SYSTEM
There's no longer a `mono_glue=yes/no` SCons options. We no longer
need to build with `mono_glue=no`, generate the glue and then build
again with `mono_glue=yes`. We build only once and generate the glue
(which is in C# now).
However, SCons no longer builds the C# projects for us. Instead one
must run `build_assemblies.py`, e.g.:
```sh
%godot_src_root%/modules/mono/build_scripts/build_assemblies.py \
--godot-output-dir=%godot_src_root%/bin \
--godot-target=release_debug`
```
We could turn this into a custom build target, but I don't know how
to do that with SCons (it's possible with Meson).
OTHER NOTES
Most of the moved code doesn't follow the C# naming convention and
still has the word Mono in the names despite no longer dealing with
Mono's embedding APIs. This is just temporary while transitioning,
to make it easier to understand what was moved where.
2022-08-22 03:35:59 +02:00
rafallus
da7a5653f4
Expose Basis `set_orthogonal_index` method as a GridMap function
2022-08-20 21:42:20 -05:00
Umang Kalra
7ef5dfcfc3
Changed the title of change node type dialog
2022-08-20 22:53:07 +05:30
Max Hilbrunner
79717dcb46
Merge pull request #64170 from YuriSizov/docs-annotations-in-technicolor
...
Add documentation for all annotations
2022-08-20 00:57:01 +02:00
Yuri Sizov
7895a66cf2
Merge pull request #64334 from YuriSizov/core-bind-property-revert-methods
...
Make `property_*_revert` methods multilevel and expose them for scripting
2022-08-19 20:41:41 +03:00
Yuri Sizov
a0995182fe
Add documentation for all annotations
2022-08-19 15:06:39 +03:00
Max Hilbrunner
6f273d2156
Merge pull request #63326 from MewPurPur/binary-highlighting-fix
...
Fix highlighting of multiple operators
2022-08-19 01:27:02 +02:00
Clay John
17ca5b913c
Merge pull request #64156 from bruvzg/sys_msdf
...
Allow MSDF rendering for system fonts, fix crash on loading damaged / unsupported font files.
2022-08-18 14:58:57 -06:00
RedMser
c25b8f2876
Remove unintentional PROPERTY_USAGE_INTERNAL
...
The flag only matters for property definition,
but was also used in _validate_property a lot.
2022-08-18 16:25:00 +02:00
Silc Renew
b31115cdc1
Add collision weight to PhysicsBody for penetrations must be avoided
...
Co-authored-by: Juan Linietsky <reduzio@gmail.com>
2022-08-18 08:10:31 +09:00
Yuri Sizov
980f5f32f4
Make `property_*_revert` methods multilevel and expose them for scripting
2022-08-18 00:03:53 +03:00
Haoyu Qiu
660c700f9c
Fix action name completion for `Input`
2022-08-15 23:28:49 +08:00
Yuri Sizov
d953d9590b
Improve the `make_rst.py` parser for BBCode tags
2022-08-15 17:45:10 +03:00
Aaron Franke
be81b33e2b
GLTF: Fix orthographic cameras, internally store data in GLTF's format
2022-08-14 19:18:53 -05:00
Aaron Franke
3bbb50359d
Document GLTFLight and GLTFSpecGloss
2022-08-14 14:57:58 -05:00
VolTer
2e6108d181
Improve binary operator highlighting
2022-08-14 15:49:07 +02:00
smix8
4f0730d4bc
Add Navigation Debug for GridMap edge connections
...
Adds navigation visual debug for GridMap edge connections that use baked navigationmesh with bake_navigation=true.
2022-08-13 21:27:56 +02:00
Micky
b62d06fbed
Rename Navigation's `neighbor_dist` to `neightbor_distance`
...
NavigationAgent2D/3D.`neighbor_dist` -> `neighbor_distance` (also affects setters and getters)
NavigationServer2D/3D.`agent_set_neighbor_dist()` -> `agent_set_neighbor_distance()`
Also changes their parameters' names.
Doesn't affect "Agent.neighborDist_" in Agent.h
2022-08-13 12:40:55 +02:00
Raul Santos
232f1161f5
Expose string array properties in OpenXR module as PackedStringArray
2022-08-11 00:59:47 +02:00
Rémi Verschelde
345dd9f0fb
Merge pull request #62934 from Xwdit/script_doc_arg_def_var
2022-08-10 16:31:45 +02:00
Rémi Verschelde
a946768151
Merge pull request #63015 from Xwdit/fix_gds_editor_tooltip_arg_type
2022-08-10 16:31:32 +02:00
Rémi Verschelde
26b2ac82ff
Merge pull request #63020 from Xwdit/fix_gds_editor_tooltip_return_type
2022-08-10 16:31:20 +02:00
Rémi Verschelde
0af6aae5bb
Merge pull request #64169 from hakro/fix-gltf-animations-always-imported
2022-08-10 15:25:20 +02:00
Xwdit
f265f175e3
Fix script documentation method argument default values
...
Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
2022-08-10 15:07:21 +02:00
Xwdit
e25c86bf5d
Fixed incorrect type display of function argument in GDScript editor tooltips
2022-08-10 15:06:21 +02:00
Xwdit
7e262310a2
Fixed incorrect type display of void return in GDScript editor tooltips
2022-08-10 15:05:47 +02:00
Rémi Verschelde
abe98a95c5
Merge pull request #64206 from Chaosus/gds_fix
2022-08-10 12:29:11 +02:00
Rémi Verschelde
6b84619136
Merge pull request #64188 from YeldhamDev/gridmap_item_fix
2022-08-10 11:50:20 +02:00
Hakim
805ffdfbf6
Prevent AnimationPlayer from being added on GLTF import if the option is unchecked. Fixes #63954
2022-08-10 11:17:29 +02:00
Yuri Rubinsky
df85c9871f
Prevent global functions from overriding completion of subscript
2022-08-10 11:51:53 +03:00
Michael Alexsander
fe16aecbac
Fix error when switching to another `GridMap` with an item with higher index selected
2022-08-09 19:05:02 -03:00
bruvzg
bf1cc6326a
Allow MSDF rendering for system fonts, fix crash on loading damaged / unsupported font files.
2022-08-09 14:21:09 +03:00
antonWetzel
40a1d6d100
vector4 distance_squared_to and update csharp
2022-08-09 01:59:17 +02:00
Rémi Verschelde
f8383a7c72
Merge pull request #64099 from A-Lamia/lsp_uri_path_fixes
2022-08-08 23:04:33 +02:00
Yuri Sizov
c5d7115038
Rename the argument tag to param in XML documentation
2022-08-08 22:34:31 +03:00
Rémi Verschelde
862dedcefe
Merge pull request #64076 from raulsntos/doc-fixes
...
Add `@GDScript.type_exists` documentation, Fix typo in weakref documentation
2022-08-08 19:15:25 +02:00
Rémi Verschelde
bc3ab0aaa8
Merge pull request #64004 from YuriSizov/doctool-fail-on-unnamed-args
...
Add checks and tests for empty/unnamed arguments
2022-08-08 19:15:07 +02:00
Rémi Verschelde
74d2c7d394
Merge pull request #63932 from smix8/navigation_heightmapshape_baking_4.x
2022-08-08 15:47:08 +02:00
Raul Santos
e47ba81050
Add `@GDScript.type_exists` documentation
2022-08-08 15:40:32 +02:00
Yuri Sizov
1362bc22bd
Add tests for empty/unnamed arguments to ClassDB, Variant, GDScript
2022-08-08 16:36:01 +03:00
Lamia
42a16ef76e
fix: modifies workspace->root_uri so that p_uri is symmetrical to other operating systems. #63388
2022-08-08 22:40:13 +10:00
Rémi Verschelde
01ce034398
Merge pull request #64085 from raulsntos/fix-rider-check
2022-08-08 08:58:21 +02:00
Rémi Verschelde
7801ad0531
Merge pull request #64046 from AntonioDell/bugfix/63715-infer-preloaded-const-types
2022-08-08 08:55:37 +02:00
Raul Santos
34c3966510
Avoid paths with invalid characters in `IsRider`
2022-08-08 02:00:17 +02:00
Raul Santos
83ffe70f1f
Various fixes to C# documentation
2022-08-07 19:18:04 +02:00
Antonio Dell'Annunziata
f81a166ab8
fix(gdscript): Infer type from preload const
...
When resolving the type of the attribute from the variant, the result_type.kind was overritten for no reason.
It is assumed that this only needs to be done, if the variant value is not valid to have any kind here.
Solves #63715
2022-08-07 16:09:24 +02:00
Rémi Verschelde
e3876899d3
Merge pull request #63919 from Faless/scons/4.x_easy_deps
2022-08-07 16:09:02 +02:00
Fabio Alessandrelli
43f51d78d1
[MP] Cleanup and fixes for replication plugin.
...
- Remove dead code.
- Fix "Add from path" adding the wrong string when targeting root node.
2022-08-07 15:08:35 +02:00
Fabio Alessandrelli
202320e1ed
[Websocket] Remove dummy JS server implemenation.
...
It does nothing but printing errors (only websocket client is available
in browsers), so we might as well return null when you instantiate it.
2022-08-07 13:44:16 +02:00
Rémi Verschelde
77d3ac700d
Merge pull request #63712 from object71/fix-export-issues
2022-08-06 14:27:17 +02:00
Rémi Verschelde
c81ef51503
Merge pull request #63976 from aaronfranke/godots-own-comment-lines
2022-08-06 13:20:57 +02:00
Rémi Verschelde
ae335196b5
Merge pull request #63762 from bruvzg/ft_warn
...
[TextServer] Add a build warning when building with external FreeType without Brotli support.
2022-08-06 00:31:15 +02:00
Rémi Verschelde
bd833f8e06
Merge pull request #63871 from bruvzg/ts_build_options
...
Add Text Server related options to the build profiles editor.
2022-08-06 00:23:41 +02:00
Aaron Franke
ce0080768c
Make "Godot source files" comment consistent in modules
2022-08-05 17:09:11 -05:00
bruvzg
4b155b939b
[Text Server] Prevent composite glyphs which incorporate kashida from being used for justification. Update TextServer tests to clean up on fail.
2022-08-05 19:35:38 +03:00
smix8
5137cd9d87
Add NavigationMesh baking for HeightMapShape
...
Adds HeightMapShape for StaticColliders and GridMap to the NavigationMeshGenerator for baking NavigationMesh.
2022-08-05 08:56:38 +02:00
Rémi Verschelde
25915cdd0e
Merge pull request #59844 from Calinou/rename-shader-param-methods
2022-08-05 02:52:06 +02:00
Hugo Locurcio
db22b7ded0
Rename shader parameter uniform setter/getter methods for consistency
...
`shader_uniform` is now consistenly used across both per-shader
and per-instance shader uniform methods. This makes methods easier
to find in the class reference when looking for them.
2022-08-04 23:17:06 +02:00
bruvzg
80c9a44492
Fix overrun flag check and HarfBuzz safe to break flag check.
2022-08-04 22:58:28 +03:00
Fabio Alessandrelli
951a1016d3
[Scons] Implement module dependency sorting.
...
Modules can now call:
env.module_add_dependencies(name: str, deps: list, optional: bool)
To add required or optional dependencies during the "can_build" step.
Required dependencies will be checked and the module will be not be
enabled when they are missing, printing a warning to notify the user.
2022-08-04 20:00:19 +02:00
Fabio Alessandrelli
55845bac26
Fix some array size function definition mismatch.
2022-08-04 13:06:17 +02:00
Rémi Verschelde
fdceece7f8
Merge pull request #63899 from bruvzg/hb_510
...
HarfBuzz: Update to version 5.1.0, use new FLAG_SAFE_TO_INSERT_TATWEEL flag to improve justification.
2022-08-04 09:12:05 +02:00
bruvzg
2980c0d60c
HarfBuzz: Update to version 5.1.0, use new FLAG_SAFE_TO_INSERT_TATWEEL flag to improve justification.
2022-08-04 09:10:16 +03:00
Hristo Stamenov
0e1f7e9f89
Removed faulty function update after get_property_list.
...
The function tried to rearrange properties but that lead to problems with duplication or deleted properties. Implemented the logic that that function did inside the get_property_list both for tool scripts and non-tool scripts.
2022-08-03 21:45:16 +03:00
Aaron Franke
19a4d75b44
Replace Vector3.ToDiagonalMatrix with Basis.FromScale in C#
2022-08-03 10:24:22 -05:00
bruvzg
066ca97690
Add Text Server related options to the build profiles editor.
...
Adds SCons options to disable Brotli and Graphite.
Adds option categories to the build profiles editor.
Adds options default state to the build profiles editor.
Adds Text Server related options to the build profiles editor.
Fix misplaced OpenGL/Vulkan SCons options.
2022-08-03 15:06:43 +03:00
Fabian Keller
f242f9c738
Fix consistency of translated/scaled/rotated in Transform2D and Transform3D
2022-08-02 23:38:14 +02:00
Rémi Verschelde
c67febb008
Merge pull request #63830 from KoBeWi/regEX
...
Add static method for creating RegEx
2022-08-02 18:16:04 +02:00
kobewi
61a2cb65b1
Add static method for creating RegEx
2022-08-02 15:56:46 +02:00
Rémi Verschelde
33258d850c
Merge pull request #61315 from lawnjelly/variant_bucket_pools
...
Variant memory pools
2022-08-02 15:54:18 +02:00
bruvzg
4373a0bb86
[TextServer] Add ICU Unicode security and spoofing detection.
2022-08-02 15:37:49 +03:00
Max Hilbrunner
2685cc7bb6
UPNP: Don't delete mappings when adding mappings
...
Don't delete previous mappings when adding a new mapping.
This was a old workaround that seems to cause issues.
2022-08-02 09:11:05 +02:00
Rémi Verschelde
b7346e5025
Merge pull request #53956 from bruvzg/icu_uax_31
2022-08-02 08:54:19 +02:00
Rémi Verschelde
536b5b69ab
Merge pull request #63789 from YuriSizov/editor-remove-old-property-widgets
...
Remove `CustomPropertyEditor` completely
2022-08-02 07:50:20 +02:00
bruvzg
5aa48b6ae5
[TextServer] Implement ICU/UAX 31 based `is_valid_identifier` function.
2022-08-02 08:30:20 +03:00
Ignacio Roldán Etcheverry
8243c7ab5d
Merge pull request #63790 from raulsntos/csharp-unused
...
C#: Remove unused `Transform2D.ScaleBasis` method
2022-08-01 22:38:17 +02:00
Yuri Sizov
86798d36db
Remove `CustomPropertyEditor` completely
2022-08-01 22:57:05 +03:00
Raul Santos
a4ad1dfa51
C#: Remove unused `Transform2D.ScaleBasis` method
2022-08-01 20:56:29 +02:00
Yuri Sizov
1c9ba5ef3e
Remove excessive `editor/property_editor.h` includes
2022-08-01 17:19:11 +03:00
bruvzg
366e2d893e
[TextServer] Add a build warning when building with external FreeType without Brotli support.
2022-08-01 13:22:29 +03:00
Raul Santos
d0e586fc7e
Rename math 'phi' arguments to 'angle' in C#
2022-08-01 02:42:20 +02:00
Rémi Verschelde
14828c331c
Mono: Fix build after #63737
2022-08-01 00:40:18 +02:00
Rémi Verschelde
f04004b24c
Merge pull request #55450 from Calinou/script-editor-improve-light-theme-syntax-colors
2022-08-01 00:08:25 +02:00
Rémi Verschelde
8ad80f0547
Merge pull request #63737 from YuriSizov/editorresourceconversionpluginactomy
2022-07-31 23:52:38 +02:00
Rémi Verschelde
880d93c71c
Merge pull request #63537 from antonWetzel/csharp-vector4
...
`Vector4`, `Vector4i` and `Projection` for Csharp
2022-07-31 23:45:52 +02:00
Hugo Locurcio
0a24d40836
Improve script editor's light theme syntax colors for better readability
...
New colors were hand-picked to have a better contrast rate,
while still following the general coloring of the previous light theme.
This improves the light theme's accessibility, especially in outdoor
environments with direct sunlight.
2022-07-31 23:40:48 +02:00
Rémi Verschelde
c0946d3c38
Merge pull request #63743 from bruvzg/hb_inc_order_and_ver_check
2022-07-31 23:38:00 +02:00
Fabio Alessandrelli
faff5e10a5
Merge pull request #63599 from nathanfranke/mp-docs
...
Document multiplayer replication classes, small changes to MultiplayerSpawner
2022-07-31 23:14:33 +02:00
bruvzg
b54c5c2683
[TextServer] Ensure that built-in library headers are always included before system header, add HarfBuzz version checks for optional features.
2022-07-31 22:52:59 +03:00
Yuri Sizov
9f55bd971e
Extract EditorResourceConversionPlugin into its own source files and clean up editor includes
2022-07-31 21:14:15 +03:00
antonWetzel
87ebfff46d
create vector4, vector4i and projection for csharp
2022-07-31 19:42:34 +02:00
Rémi Verschelde
602e967ba8
Merge pull request #55943 from jvanmourik/master
...
glTF animation parsing: Changed the 'loop' and 'cycle' animation name keywords to be case-insensitive
2022-07-31 17:28:43 +02:00
Rémi Verschelde
556cc22dd0
Merge pull request #63656 from raulsntos/fix-signal-bind-csharp
2022-07-31 13:29:31 +02:00
Rémi Verschelde
bd58300718
Merge pull request #63661 from raulsntos/fix-editor-paths-include
...
Add `editor_paths.h` include missing in mono module
2022-07-31 09:57:37 +02:00
Nathan Franke
b7c5aeca8a
document multiplayer replication classes, small changes to multiplayer spawner
2022-07-30 21:38:19 -05:00
Aaron Franke
ab4b5af286
Fix TranslatedLocal method in C# affecting the original transform
2022-07-30 11:54:35 -05:00
Raul Santos
cef3ca4024
Add editor_paths.h include missing in mono module
2022-07-30 02:00:56 +02:00
Rémi Verschelde
335fc2a946
Merge pull request #48183 from madmiraal/fix-regex-offset
...
Generate error if RegEx offset is negative
2022-07-29 22:38:35 +02:00
Rémi Verschelde
15a02c49be
Merge pull request #61647 from KoBeWi/SaverResource
2022-07-29 22:30:51 +02:00
Raul Santos
ca47471dfa
Fix Callable calls in mono module
...
The `Callable::call` and `Callable::call_deferred` methods have been
renamed to `Callable::callp` and `Callable::call_deferredp`.
2022-07-29 21:56:02 +02:00
Marcel Admiraal
db1270d521
Generate error if RegEx offset is negative
2022-07-29 19:43:23 +01:00
kobewi
c3606cb5f3
Swap arguments of ResourceSaver.save()
2022-07-29 19:53:09 +02:00
LinuxUserGD
6e6569aa78
fix 'Comparison result is always the same' warnings
2022-07-29 19:45:22 +02:00
Rémi Verschelde
ba3734e69a
Merge pull request #63603 from aaronfranke/editor-paths
...
Move editor paths into the EditorPaths class
2022-07-29 19:31:59 +02:00
Rémi Verschelde
7199314eb3
Merge pull request #63595 from reduz/remove-signal-connect-binds
...
Remove Signal connect binds
2022-07-29 18:10:39 +02:00
Aaron Franke
ac870ab1c8
Move editor paths into the EditorPaths class
2022-07-29 11:07:30 -05:00
Juan Linietsky
d4433ae6d3
Remove Signal connect binds
...
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind().
Changed all uses of it to Callable.bind()
2022-07-29 16:26:13 +02:00
Antonio Dell'Annunziata
7b975b50dc
fix(gdscript): Fix infinite loop on type inferernce from super method calls
...
When infering the type from a `super()` call, the gdscript_editor didn't use the base class to search for the original implementation of the method, but instead searched in the extending class.
This caused the same function to be analyzed for type inference which created the infinite loop.
Solves #63592
2022-07-29 10:22:55 +02:00
Rémi Verschelde
0cf26fb8c8
Merge pull request #63584 from smix8/navigation_std_to_localvector_4.x
2022-07-29 09:42:19 +02:00
DeeJayLSP
c8f3b02fcf
Rename every instance of "OGG" to "Ogg"
2022-07-28 16:41:38 -03:00
Rémi Verschelde
14d021287b
Merge pull request #63049 from Faless/mp/4.x_as_module
2022-07-28 20:46:31 +02:00
smix8
8d4922cfb1
Replace Navigation std::vector use with LocalVector
...
Replace Navigation std::vector use with LocalVector.
2022-07-28 20:29:15 +02:00
Antonio Dell'Annunziata
e03b7b1935
fix(gdscript): Fix out of bounds crash after reloading member variables
...
The crash happens because the members Vector is resized, while the member_indices_cache still has the old indices saved.
On deleting a member from the script this can result to a cached index of 1 while the members Vector size is only 1.
2022-07-28 18:52:29 +02:00
Rémi Verschelde
199ea349f5
Merge pull request #57698 from bluenote10/feature/rename_translated_to_translated_local
2022-07-28 10:03:07 +02:00
Rémi Verschelde
fb086d44cf
Merge pull request #63560 from V-Sekai/named_global_crashfix
2022-07-28 09:03:01 +02:00
Bastiaan Olij
1dd671014b
Add startup flag to override XR mode settings
2022-07-28 11:50:34 +10:00
SaracenOne
1307577932
Prevent hard crash in GDScriptVM when a named global can not be found.
2022-07-27 23:37:42 +01:00
Edward
67e34f6120
inconsistent str() error fix
...
inconsistent str() error fix
2022-07-27 14:16:05 -04:00
Lamia
3fa943fe23
LSP: Sanitizes protocol URI `file:///c%3A` in file path
...
Fixes #63205 .
2022-07-28 02:25:05 +10:00
Rémi Verschelde
663195f36a
Merge pull request #63325 from EIRTeam/typed_array_fix
2022-07-27 12:39:20 +02:00
Rémi Verschelde
f3fbb157ca
Merge pull request #63121 from aaronfranke/editor-export-split
2022-07-27 11:19:40 +02:00
RedMser
7b834c8bfd
Fix unnamed arguments in XML docs
2022-07-26 20:42:38 +02:00
Aaron Franke
e53ae13178
Split up editor export code into multiple files
2022-07-26 08:28:19 -05:00
Fabio Alessandrelli
ca7d572908
[Net] Modularize multiplayer, expose MultiplayerAPI to extensions.
...
- RPC configurations are now dictionaries.
- Script.get_rpc_methods renamed to Script.get_rpc_config.
- Node.rpc[_id] and Callable.rpc now return an Error.
- Refactor MultiplayerAPI to allow extension.
- New MultiplayerAPI.rpc method with Array argument (for scripts).
- Move the default MultiplayerAPI implementation to a module.
2022-07-26 09:31:12 +02:00
kobewi
e4a961b86a
Fix Vector4 parse error
2022-07-26 01:49:57 +02:00
Juan Linietsky
c7255388e1
Remove ThreadWorkPool, replace by WorkerThreadPool
...
The former needs to be allocated once per usage. The later is shared for all threads, which is more efficient.
It can also be better debugged.
2022-07-25 15:39:50 +02:00
Rémi Verschelde
90019676b0
Code quality: Fix header guards consistency
...
Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
2022-07-25 11:17:40 +02:00
Rémi Verschelde
3084a48ace
Merge pull request #63219 from reduz/implement-vector4-projection
2022-07-25 11:13:27 +02:00
Aaron Franke
7b8f9a0e8e
GLTF: Organize structures into a subfolder
2022-07-24 17:16:51 -05:00
Rémi Verschelde
a1f0ea5d19
Merge pull request #63409 from V-Sekai/gltf-export
2022-07-25 00:03:38 +02:00
K. S. Ernest (iFire) Lee
b2bd4cc792
Mend duplicate nodes in the gltf export.
2022-07-24 14:38:57 -07:00
Rémi Verschelde
b7a47bfc09
Merge pull request #63098 from Xwdit/fix_qualifiers_script_doc
2022-07-24 23:26:30 +02:00
Xwdit
5d49df8d97
Fix missing method qualifiers in script doc
...
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-07-24 23:00:19 +02:00
Aaron Franke
00ec9321f6
GLTF: Move shared defines into a separate gltf_defines.h file
...
Also move GLTFDocument's template conversion functions into gltf_template_convert.h
2022-07-24 14:21:27 -05:00
Aaron Franke
6887b3f8ee
GLTF: Only list used extensions when they're actually used
2022-07-23 21:59:16 -05:00
reduz
455c06ecd4
Implement Vector4, Vector4i, Projection
...
Implement built-in classes Vector4, Vector4i and Projection.
* Two versions of Vector4 (float and integer).
* A Projection class, which is a 4x4 matrix specialized in projection types.
These types have been requested for a long time, but given they were very corner case they were not added before.
Because in Godot 4, reimplementing parts of the rendering engine is now possible, access to these types (heavily used by the rendering code) becomes a necessity.
**Q**: Why Projection and not Matrix4?
**A**: Godot does not use Matrix2, Matrix3, Matrix4x3, etc. naming convention because, within the engine, these types always have a *purpose*. As such, Godot names them: Transform2D, Transform3D or Basis. In this case, this 4x4 matrix is _always_ used as a _Projection_, hence the naming.
2022-07-23 14:00:01 +02:00
Rémi Verschelde
a5bc65bbad
Merge pull request #63265 from reduz/stream-bpm-support
...
Implement BPM support in AudioStream files.
2022-07-23 11:21:14 +02:00
reduz
d1ddee2258
Implement BPM support
...
Based on #62896 , only implements the BPM support part.
* Implements BPM support in the AudioStreamOGG/MP3 importers.
* Can select BPM/Bar Size and total beats in a song file, as well as edit looping points.
* Looping is now BPM aware
* Added a special importer UI for configuring this.
* Added a special preview showing the audio waveform as well as the playback position in the resource picker.
* Renamed `AudioStream::instance` to `instantiate` for correctness.
2022-07-23 07:31:17 +02:00
Rémi Verschelde
3f504eb9fe
Merge pull request #63313 from python273/fix-xr-doc-links
2022-07-22 23:44:00 +02:00
Álex Román Núñez
1b10f744e0
Fix typed array returns returning the incorrect contained type
...
Fixes #59485 and #60218
2022-07-22 20:34:19 +02:00
Aaron Franke
b00bb577e7
Rename directory for export templates from templates to export_templates
2022-07-22 12:35:43 -05:00
Dallon Feldner
07ddc8b3b8
Don't print redundant errors when parsing GDScript
...
The error macros print a generic error, which isn't necessary, and could be confusing to end users.
2022-07-22 09:30:52 -05:00
python273
f78d06c9fe
Fix tutorial links in XR classes docs
2022-07-22 15:05:31 +03:00
Nathan Franke
eb8482cf95
round dimensions of svg
2022-07-21 20:11:29 -05:00
Yuri Rubinsky
ccc56cc6d4
Rename `epsilon` to `tolerance` in the `Plane::has_point` method
2022-07-21 20:15:15 +03:00
Rémi Verschelde
ea3d355f0a
Merge pull request #62433 from KoBeWi/ 🌈
2022-07-21 16:36:34 +02:00
bruvzg
8823eae328
Rename OSX to macOS and iPhoneOS to iOS.
2022-07-21 09:37:52 +03:00
Rémi Verschelde
fa2dcc7ace
Merge pull request #47935 from HaSa1002/doc-loading-run-time
2022-07-20 22:33:49 +02:00
Riteo
a21f8b7c13
Improve `linuxbsd` headless building, cleanup build scripts
...
Now the `linuxbsd` platform can be built headlessly (e.g. without X11
development libraries).
I also cleaned up some weird (old?) usages of the `env` variable which
seem to make no difference and are used nowhere else.
2022-07-20 19:48:35 +02:00
kobewi
df5655fdca
Highlight ^NodePath and &StringName differently
2022-07-19 20:20:30 +02:00
Rémi Verschelde
7fd29b5464
Merge pull request #59301 from fire-forge/layout-preset-full-rect
2022-07-19 12:06:00 +02:00
FireForge
97dfbea6ad
Rename Control PRESET_WIDE to PRESET_FULL_RECT
2022-07-18 20:08:11 -05:00
FireForge
84431bd782
Use integer types in Image and ImageTexture methods
...
- Image.blit_rect()
- Image.blit_rect_mask()
- Image.blend_rect()
- Image.blend_rect_mask()
- Image.fill_rect()
- Image.get_used_rect()
- Image.get_rect()
- ImageTexture.set_size_override()
2022-07-18 19:43:32 -05:00
Rémi Verschelde
d2df09d02b
Merge pull request #63037 from cdemirer/fix-non-global-autoload-code-completion-crash
2022-07-18 16:13:29 +02:00
cdemirer
e9a5beeb01
Fix crash while trying to autocomplete non-global Autoload
2022-07-18 16:35:25 +03:00
Rémi Verschelde
4e9d3130f5
Merge pull request #63024 from Xwdit/fix_grouping_annotation_in_doc
2022-07-18 15:29:11 +02:00
Rémi Verschelde
aace87e0d0
Merge pull request #63123 from zerc/fix_doc_class_description
2022-07-18 14:56:55 +02:00
Vladimir Savin
585eee2a48
GDScript: Fix brief/long description doc comments.
2022-07-18 13:34:07 +01:00
Rémi Verschelde
73a67f9309
Merge pull request #63125 from cdemirer/fix-parameter-shadowing-class-member
...
Check for parameters shadowing class members
2022-07-18 13:36:51 +02:00
George L. Albany
8035f1e36f
Allow non-constant string message for assert
2022-07-18 00:53:31 -04:00
cdemirer
52781535a3
Check for parameters shadowing class members
2022-07-18 00:28:27 +03:00
Bastiaan Olij
d139131aab
Adding Variable Rate Shading support to Godot
...
Improve GI renderer and add VRS support
Implement render device has_feature and move subgroup settings to limit_get
2022-07-17 15:42:24 +10:00
Fabian Keller
2bf9e6090c
rename translate(d) to translate(d)_local in Transform 2D/3D
2022-07-16 11:47:54 +02:00
Xwdit
152466938f
Fix grouping annotations displayed in document
2022-07-15 12:39:52 +02:00
bruvzg
cbe3a2dcb7
Use BitField hint for the TextServer enums. Add missing parts for BitField support to the GDextension API.
2022-07-15 08:49:50 +03:00
Rémi Verschelde
184f62cb46
Merge pull request #60458 from KoBeWi/Deprecated-hint,-unused-
2022-07-14 00:20:30 +02:00
Lerg
52adbb763e
Fix documentation for C# Vector2/3i classes.
...
The / operator was wrongly documented as a multiplication.
2022-07-13 22:49:22 +02:00
George Marques
dc5a6362c1
Merge pull request #62895 from KoBeWi/callables_exist_you_know
2022-07-13 09:30:08 -03:00
George Marques
ad11d264b7
Merge pull request #62901 from cdemirer/prevent-unnecessary-additional-parser-error
2022-07-13 09:24:36 -03:00
George Marques
d51aac1137
Merge pull request #62900 from cdemirer/fix-parser-stuck-in-an-error-loop
2022-07-13 09:18:21 -03:00
Rémi Verschelde
b942c1ffe3
Merge pull request #62827 from fire-forge/ok-cancel
...
Add `ok_button_text` to AcceptDialog and `cancel_button_text` to ConfirmationDialog
2022-07-13 14:10:38 +02:00
George Marques
87ef6f554b
Merge pull request #62918 from cdemirer/parser-properly-set-node-extents
2022-07-13 09:08:28 -03:00
George Marques
01f910517d
Merge pull request #62922 from YuriSizov/gdscript-annotation-defaults
2022-07-13 09:06:20 -03:00
George Marques
bf1ef0498e
Merge pull request #62578 from MinusKube/editor-print-crash
...
Fix GDScript parser sometimes crashing when issuing warning for unreachable pattern
2022-07-13 08:44:40 -03:00
kobewi
2f777b9a1e
Remove unused hints
2022-07-12 00:44:13 +02:00
Yuri Sizov
316f78a037
Add default argument bindings to GDScript annotations
2022-07-11 23:02:55 +03:00
cdemirer
12b9572121
Parser: Properly set node extents
2022-07-11 21:31:15 +03:00
cdemirer
5a906a33d9
Prevent unnecessary additional parser error
2022-07-11 03:32:28 +03:00
cdemirer
4f36b2df2a
Fix parser stuck in an error loop
2022-07-11 02:42:40 +03:00
kobewi
e9344f5154
Remove outdated code path
2022-07-10 20:48:33 +02:00
FireForge
e4067064ce
Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialog
2022-07-09 10:47:08 -05:00
kobewi
d2900429e8
Add static methods for creating Image and ImageTexture
2022-07-08 13:40:47 +02:00
Rémi Verschelde
31974aaae2
Merge pull request #62805 from raulsntos/csharp-rpc
2022-07-07 17:21:51 +02:00
Rémi Verschelde
3768236ad2
Merge pull request #62789 from raulsntos/csharp-export-nodes
2022-07-07 17:21:10 +02:00
Rémi Verschelde
421e93b590
Merge pull request #62782 from raulsntos/csharp-bitfield-enums
2022-07-07 14:59:21 +02:00
Rémi Verschelde
72b3e81bdf
Merge pull request #62801 from raulsntos/ensure-nuget-path-exists
2022-07-07 12:23:35 +02:00
Rémi Verschelde
1e553e34fb
Merge pull request #62108 from bruvzg/font_config_v3
2022-07-07 12:22:49 +02:00
bruvzg
0c5431644d
Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
2022-07-07 11:07:18 +03:00
Rémi Verschelde
28a3dee276
Merge pull request #62791 from raulsntos/csharp-bezier-interpolation
...
C#: Add `BezierInterpolate` method
2022-07-07 09:40:36 +02:00
Raul Santos
8131358b71
C#: New `RPCAttribute`
...
Replace old RPC attributes with a new single `RPCAttribute` which works
like the GDScript `@rpc` annotation.
2022-07-07 04:10:38 +02:00
Raul Santos
1637d0c699
Ensure NuGet.config directory exists
2022-07-07 01:53:32 +02:00
Raul Santos
71f99c6d40
C#: Add `BezierInterpolate` method
...
Adds a `BezierInterpolate` method for floats in `Mathf` and for vectors
in `Vector2` and `Vector3`.
2022-07-06 21:59:42 +02:00
Raul Santos
68477e9b1b
C#: Enable exporting nodes to the inspector
2022-07-06 21:49:53 +02:00
Raul Santos
f9c43c5489
Add C# support for bitfield enums (flags)
2022-07-06 17:49:37 +02:00
Rémi Verschelde
09e12ba9b4
Sync GDScript doc template for new annotations
2022-07-06 16:37:40 +02:00
Rémi Verschelde
f0eb3ac5d3
Merge pull request #62701 from cdemirer/for-variable-conflict
2022-07-06 16:02:49 +02:00
Rémi Verschelde
fdff28e1a2
Merge pull request #62699 from cdemirer/fix-autocomplete-var-assigned-same-statement
2022-07-06 15:57:19 +02:00
Rémi Verschelde
4c56885bc0
Merge pull request #62690 from cdemirer/fix-infinite-guess-recursion
2022-07-06 15:54:16 +02:00
Rémi Verschelde
4873886830
Merge pull request #62760 from cdemirer/fix-annotation-initializer-conflict
...
Fix priority of annotated type vs initializer type
2022-07-06 15:47:56 +02:00
Rémi Verschelde
635d447a69
Merge pull request #62713 from YuriSizov/docs-scripting-annotations
2022-07-06 15:31:19 +02:00
Rémi Verschelde
ea61cd3b32
Merge pull request #62707 from YuriSizov/gdscript-group-those-props
2022-07-06 15:24:07 +02:00
Rémi Verschelde
55fca1cb94
Merge pull request #62344 from BastiaanOlij/extract_dependencies
2022-07-06 13:24:46 +02:00
bruvzg
344ba0ffaf
Refactor Font configuration and import UI, and Font resources.
2022-07-06 14:12:36 +03:00
Rémi Verschelde
cf19484746
Merge pull request #62374 from reduz/implement-bitfield-hint
...
Implement a BitField hint
2022-07-06 09:35:40 +02:00
cdemirer
f280975bf1
Fix priority of annotated type vs initializer type
2022-07-06 04:25:44 +03:00
reduz
5ac42cf576
Implement a BitField hint
...
Allows to specify the binder that an enum must be treated as a bitfield.
2022-07-05 22:13:37 +02:00
Yuri Sizov
f85bafaa11
Add grouping annotations for class properties in GDScript
2022-07-05 22:01:40 +03:00
PZerua
aa7ab96e71
Fix light intensity and attenuation import from GLTF
2022-07-05 19:48:01 +02:00
Yuri Sizov
a9098e6147
Add support for documenting built-in annotations
2022-07-04 20:21:39 +03:00
lawnjelly
b221eab426
Variant memory pools
...
Memory pools via PagedAllocator for Transform2D, Transform3D, Basis and AABB.
2022-07-04 12:01:46 +01:00
cdemirer
dbdf0174b4
Do error when for variable conflicts with a variable in scope
2022-07-04 12:30:39 +03:00
cdemirer
3a827349bf
Fix autocomplete for variable which is assigned to in the current statement
2022-07-04 10:08:41 +03:00
bruvzg
6c27d9d624
HarfBuzz: Update to version 4.4.1
2022-07-04 09:12:19 +03:00
cdemirer
bd518f6b11
Fix infinite recursion when guessing type of variable which is being assigned to
2022-07-04 02:49:36 +03:00
Rémi Verschelde
eafb565f0c
Merge pull request #62653 from akien-mga/gltf-warning-typo-fix
2022-07-03 03:30:50 +02:00
Rémi Verschelde
e72f3abe2f
glTF: Fix a couple typos in warnings on image parsing
2022-07-03 02:55:31 +02:00
mj.Jernigan
a413656e07
Register missing WebRTCDataChannelJS type
2022-07-03 01:21:17 +02:00
Rémi Verschelde
6bbfd160b0
SCons: Properly track codegen script dependency for generated GLSL headers
2022-07-02 16:01:48 +02:00
MinusKube
92367bad4e
Fix GDScript parser sometimes crashing when issuing warning for unreachable pattern
2022-07-01 02:05:00 +02:00
Silc Renew
dc43cfc830
implement bone renamer in importer
2022-07-01 03:55:28 +09:00
Rémi Verschelde
b730d2ee09
Merge pull request #60675 from voylin/Add-BBCode-support-for-printing-output
...
Adding print_rich() for printing with BBCode
2022-06-28 23:35:53 +02:00
Rémi Verschelde
f6072c9c98
Merge pull request #62485 from cdemirer/fix-set-chain-jump-if-shared
...
Fix chain assignment bug with jump_if_shared
2022-06-28 19:13:35 +02:00
cdemirer
a0608bd891
Fix set chain bug with jump_if_shared
2022-06-28 18:45:27 +03:00
Voylin
c6291bcd8a
Adding print_rich for printing with BBCode
2022-06-29 00:41:29 +09:00
Rémi Verschelde
622b656c40
Merge pull request #53135 from briansemrau/fix-ref-leak
2022-06-28 17:26:44 +02:00
Rémi Verschelde
4c14bf7482
Merge pull request #62470 from vnen/gdscript-export-nodes
...
GDScript: Enable exporting nodes to the inspector
2022-06-28 08:07:00 +02:00
Rémi Verschelde
b863c40356
Merge pull request #62468 from V-Sekai/core-const-expressions
...
Add a const call mode to Object, Variant and Script.
2022-06-28 01:08:24 +02:00
George Marques
9490146a16
GDScript: Enable exporting nodes to the inspector
...
Also fix an small issue in the property editor for NodePath trying to
use the meta property when not needed.
2022-06-27 18:42:52 -03:00
Rémi Verschelde
c4a426d6ec
Merge pull request #62462 from vnen/gdscript-setter-chaining
...
GDScript: Fix setter being called in chains for shared types
2022-06-27 23:25:53 +02:00
K. S. Ernest (iFire) Lee
9ddebc0c22
Add a const call mode to Object, Variant and Script.
...
For this to work safely (user not call queue_free or something in the expression), a const call mode was added to Object and Variant (and optionally Script).
This mode ensures only const functions can be called, making it safe to use from the editor.
Co-Authored-By: reduz <reduzio@gmail.com>
2022-06-27 13:33:06 -07:00
George Marques
511a4b761c
GDScript: Fix setter being called in chains for shared types
...
When a type is shared (i.e. passed by reference) it doesn't need to be
called in a setter chain (e.g. `a.b.c = 0`) since it will be updated in
place.
This commit adds an instruction that jumps when the value is shared so
it can be used to skip those cases and avoid redundant calls of setters.
It also solves issues when assigning to sub-properties of read-only
properties.
2022-06-27 12:09:51 -03:00
Bastiaan Olij
ecfcfd97fa
Split dependency logic
...
Split FOG
Split visibility notifier
Final cleanup of storage classes
2022-06-28 00:10:29 +10:00
Rémi Verschelde
b192073001
Merge pull request #62309 from reduz/remake-resource-thread-safety
...
Remake ResourceCache thread safety code and API
2022-06-25 14:09:28 +02:00
Rémi Verschelde
dd3de622d8
Merge pull request #62372 from MarcusElg/nosliderrename
...
Rename @export_range's noslider option to no_slider
2022-06-25 14:03:44 +02:00
Rémi Verschelde
56b8d579b2
Merge pull request #62255 from vnen/gdscript-implicit-onready
...
GDScript: Use implicit method for @onready variables
2022-06-24 23:24:33 +02:00
George Marques
cf015673d3
GDScript: Use implicit method for @onready variables
...
Initialize them with the implicit method so they're not related to the
overriding of the `_ready` method of the script but instead are always
set.
2022-06-24 14:49:21 -03:00
George Marques
81cac4907f
GDScript: Don't add implicit constructor to the list of functions
...
So it's not shown on docs or when listing the methods. This also avoids
being able to call it using the `call()` function.
2022-06-24 14:48:46 -03:00
Priyansh Rathi
e995764e50
add support for soft shadows to the lightmapper
2022-06-24 21:50:13 +05:30
Rémi Verschelde
fec3a48e53
Merge pull request #59918 from piiertho/enhancement/rename-controll-minimum_size-to-custom_minimum_size
2022-06-24 14:54:53 +02:00
Marcus Elg
6c1ac9f3be
Rename export_range's noslider option to no_slider
2022-06-24 10:45:34 +02:00
Rémi Verschelde
faae24637c
Merge pull request #62300 from smix8/navigation_map_force_update_4.x
2022-06-24 10:13:07 +02:00
Rémi Verschelde
81afea620f
Merge pull request #62353 from smix8/navigation_region_owns_point_4.x
...
Add NavigationServer region_owns_point() helper function
2022-06-24 09:08:25 +02:00
Rémi Verschelde
ecf187705e
Merge pull request #62238 from V-Sekai/openexr-buffer
...
For in-engine processing allow saving openexr to a buffer.
2022-06-24 00:12:16 +02:00
smix8
e57360d8df
Add NavigationServer.region_owns_point() helper function
...
Adds a helper function to check if a world space position is currently owned by a navigation region.
2022-06-23 23:32:05 +02:00
Rémi Verschelde
471050e6a7
Merge pull request #62342 from reduz/methodinfo-varargs
...
Implement varargs in Methodinfo
2022-06-23 22:49:16 +02:00
Rémi Verschelde
6a5267ebb2
Merge pull request #62352 from akien-mga/mono-newtonsoft.json-13.0.1
...
Mono: Update Newtonsoft.Json to 13.0.1
2022-06-23 22:43:22 +02:00
Pierre-Thomas Meisels
5ad1a1b5e7
enhancement: rename exposed property Control::minimum_size to Control::custom_minimum_size
2022-06-23 18:06:10 +02:00
K. S. Ernest (iFire) Lee
ce42ee790c
For in-engine processing allow saving openexr to a buffer.
2022-06-23 08:53:15 -07:00
smix8
fdea269805
Add NavigationServer map_force_update() function
...
Adds map_force_update() function to NavigationServer. This function immediately flushes the Navigationserver command queue and recalculates all navigationmeshes and region connections for a specific map.
2022-06-23 17:32:07 +02:00
Rémi Verschelde
870c02143b
Mono: Update Newtonsoft.Json to 13.0.1
...
See https://github.com/advisories/GHSA-5crp-9r3c-p9vr
2022-06-23 16:24:16 +02:00
Rémi Verschelde
462127eff0
Merge pull request #62312 from smix8/navigation_get_maps_4.x
2022-06-23 16:14:12 +02:00
Rémi Verschelde
bdd41a836c
Merge pull request #62293 from smix8/navigation_disable_editorprogress_bake_4.x
2022-06-23 16:13:12 +02:00
Rémi Verschelde
ef5bc1baad
Merge pull request #62348 from smix8/navigation_baking_aabb_4.x
2022-06-23 16:10:40 +02:00
smix8
0c4d99f4fd
Implement NavigationMesh bake area
...
Adds two new properties to NavigationMesh resources to restrict the navmesh baking to an area enclosed by an AABB with volume.
2022-06-23 14:55:21 +02:00
reduz
dd8c0522a6
Implement varargs in Methodinfo
...
Variadic templates are an awful thing. Implements #62233 using them in MethodInfo so less changes are required.
2022-06-23 14:50:38 +02:00
Rémi Verschelde
e3fb066cb0
Merge pull request #62317 from Black-Cat/release-return-fix
2022-06-23 14:37:33 +02:00
Rémi Verschelde
d1dac8427a
Merge pull request #55846 from ellenhp/fix_ogg_edge_cases
...
Fix ogg edge cases
2022-06-22 23:33:51 +02:00
Black Cat
5c365713ca
Do not reset return value in release build
2022-06-22 20:55:09 +04:00
smix8
c0fed1d4e8
Add Navigation function to get all navigation maps
...
Added new function that returns all created navigation map RIDs from the NavigationServer. The function returns both 2D and 3D created navigation maps as technically there is no distinction between them.
2022-06-22 15:33:40 +02:00
reduz
e772b65d92
Remake resource thread safety and API
...
* Ensures thread safety when resources are destroyed.
* Simplified API by always forcing `ResourceCache::get_ref`, which needs less hacks and is fully thread safe.
* Removed RWLock for resources because its not possible to use for the new logic. Should not be a problem.
Supersedes #57533
2022-06-22 13:46:46 +02:00
smix8
24bb0af4a9
Disable thread-unsafe EditorProgress for navmesh baking
...
Disables navmesh baking EditorProgress for now until fixed as EditorProgress is not thread-safe and uses hacks and Main::iteration() for steps which can result in random crashes when baking navmesh.
2022-06-22 10:47:00 +02:00
Aaron Franke
8f05bd97b5
Add support for saving WebP images
2022-06-21 08:27:51 -05:00
Rémi Verschelde
40c360b870
Merge pull request #62122 from reduz/implement-movie-writer
...
Implement a Movie Maker mode
2022-06-21 14:24:14 +02:00
reduz
5786516d4d
Implement Running Godot as Movie Writer
...
* Allows running the game in "movie writer" mode.
* It ensures entirely stable framerate, so your run can be saved stable and with proper sound (which is impossible if your CPU/GPU can't sustain doing this in real-time).
* If disabling vsync, it can save movies faster than the game is run, but if you want to control the interaction it can get difficult.
* Implements a simple, default MJPEG writer.
This new features has two main use cases, which have high demand:
* Saving game videos in high quality and ensuring the frame rate is *completely* stable, always.
* Using Godot as a tool to make movies and animations (which is ideal if you want interaction, or creating them procedurally. No other software is as good for this).
**Note**: This feature **IS NOT** for capturing real-time footage. Use something like OBS, SimpleScreenRecorder or FRAPS to achieve that, as they do a much better job at intercepting the compositor than Godot can probably do using Vulkan or OpenGL natively. If your game runs near real-time when capturing, you can still use this feature but it will play no sound (sound will be saved directly).
Usage:
$ godot --write-movie movie.avi [scene_file.tscn]
Missing:
* Options for configuring video writing via GLOBAL_DEF
* UI Menu for launching with this mode from the editor.
* Add to list of command line options.
* Add a feature tag to override configurations when movie writing (fantastic for saving videos with highest quality settings).
2022-06-21 11:28:47 +02:00
Rémi Verschelde
21b0c7fc22
Merge pull request #62214 from smix8/navigation_layer_bitmask_helpers_4.x
2022-06-20 15:13:33 +02:00
Rémi Verschelde
77be20ede8
Merge pull request #58921 from BastiaanOlij/htc_vive_trackers
2022-06-20 14:17:30 +02:00
reduz
141c375581
Clean up Hash Functions
...
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934
* Clean up usage of murmur3
* Fixed usages of binary murmur3 on floats (this is invalid)
* Changed DJB2 to use xor (which seems to be better)
2022-06-20 12:54:19 +02:00
Marcus Elg
46bbbd9770
Allow autocompletion of "noslider" in export_range
2022-06-19 17:11:49 +02:00
smix8
55923ade68
Add navigation layer bitmask helper functions
...
Adds helper functions to work with the navigation layer bitmask.
2022-06-19 13:47:19 +02:00
Rémi Verschelde
dd93ae63fa
Merge pull request #61991 from bruvzg/property_shortcut
...
Make enum/constant binds 64-bit.
2022-06-17 21:05:51 +02:00
Rémi Verschelde
c8e17b5a30
Merge pull request #62069 from iamjsk10/master
...
Typo: Changed "forech" into "foreach" in string_utils.cpp
2022-06-17 18:36:08 +02:00
bruvzg
860e24683f
Make enum/constant binds 64-bit.
2022-06-17 16:36:26 +03:00
iamjsk10
d3a839f4b1
Mono: Fix typo to `foreach` C# keyword
2022-06-17 13:03:32 +02:00
Rémi Verschelde
78944fef82
Merge pull request #61510 from Calinou/script-tweak-stack-overflow-message
2022-06-17 13:03:05 +02:00
Rémi Verschelde
4df25f23f8
Merge pull request #62114 from raulsntos/EditorScenePostImport_templates
...
Fix EditorScenePostImport templates for C#
2022-06-16 19:58:14 +02:00
Raul Santos
525b5e0e16
Fix EditorScenePostImport templates for C#
2022-06-16 19:29:59 +02:00
bruvzg
b5c96df277
Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the TextServer.
2022-06-16 16:49:37 +03:00
Rémi Verschelde
ef6511fbb4
Merge pull request #62104 from paulloz/dotnet-lerp-rangelerp
2022-06-16 14:32:28 +02:00
Paul Joannon
ee95a1cb28
Fix Lerp documentation and implement RangeLerp
2022-06-16 13:56:32 +02:00
K. S. Ernest (iFire) Lee
67052af918
Print NavMap error only once for invalid NavMesh.
2022-06-16 13:56:16 +02:00
Johannes Witt
8c7d4996c9
Document how to load Images and MP3 files at run-time
2022-06-16 13:18:36 +02:00
Bastiaan Olij
95f75b232f
Adding HTC tracker support
2022-06-16 16:52:13 +10:00
Rémi Verschelde
d82c227e2b
Merge pull request #61486 from jtnicholl/import_script_templates
...
Add script templates for EditorScenePostImport
2022-06-15 21:07:42 +02:00
Jonathan Nicholl
912d8e23ca
Add script templates for EditorScenePostImport
2022-06-15 12:41:37 -04:00
Yuri Rubinsky
c9ad370f20
Add a null checking to `GDScript::_super_implicit_constructor`
2022-06-15 17:28:40 +03:00
Hugo Locurcio
cceeb671db
Improve stack overflow error message in GDScript and VisualScript
...
Stack overflow errors are generally the result of infinite recursion
within a script.
2022-06-15 16:20:01 +02:00
George Marques
68b86220c8
Merge pull request #57513 from trollodel/gdscript_get_propertyinfo_classname
...
Allow setting the PropertyInfo class_name from GDScript custom properties
2022-06-15 10:48:01 -03:00
George Marques
1aa6e33bf5
Merge pull request #59358 from strank/debug-inner-classes
2022-06-15 10:37:18 -03:00
Rémi Verschelde
9839761e24
Merge pull request #59482 from kurtlachmann/lsp_better_parentheses
2022-06-15 15:31:35 +02:00
George Marques
67156aa4c2
Merge pull request #61666 from nathanfranke/fix-match-bind
...
gdscript: use correct error for unused bind match, suppress with underscore
2022-06-15 10:21:34 -03:00
Rémi Verschelde
36ff7292bc
Merge pull request #62033 from V-Sekai/openxr-angular-velocity
...
Expose XRPose's get angular velocity.
2022-06-15 07:41:58 +02:00
Rémi Verschelde
632b933a03
Merge pull request #61934 from Geometror/hashfuncs
...
Hash function improvements
2022-06-15 07:34:43 +02:00
George Marques
15740c37a3
Merge pull request #57151 from cdemirer/fix-match-array-dict-pattern-logic-error
...
Fix logic errors in match-statement Array & Dictionary patterns
2022-06-14 21:30:05 -03:00
Hendrik Brucker
8c61470fa9
Hash function improvements
2022-06-15 00:32:10 +02:00
smix8
245da150e7
Streamline Navigation layer function names.
...
Streamline Navigation layer function names.
2022-06-15 00:18:48 +02:00
K. S. Ernest (iFire) Lee
10131eb6f2
Expose XRPose's get angular velocity.
2022-06-14 07:33:22 -07:00
Rémi Verschelde
becfe93092
Merge pull request #62025 from smix8/navigation_cb_invalid_obj_4.x
2022-06-14 15:25:11 +02:00
smix8
bc38ebe4f0
Fix crash of navigation agents callback when object is invalid
...
Fix crash of navigation agents callback when object is invalid.
2022-06-14 13:04:02 +02:00
Rémi Verschelde
133d29102a
Merge pull request #61839 from Faless/webrtc/4.x_extension_static_default
2022-06-13 17:19:17 +02:00
Rémi Verschelde
136f84fc35
Merge pull request #61772 from bruvzg/ft_ot_collect
2022-06-13 11:13:05 +02:00
bruvzg
b667469bbf
[TextServer] Add missing font mutex lock.
2022-06-13 10:33:36 +03:00
strank
2079e19899
Extend test_compiler to also disassemble inner classes
2022-06-12 16:30:04 -04:00
Rémi Verschelde
296c8b74f2
Merge pull request #60128 from jiq4449/master
...
Added documentation comments to the .NET library
2022-06-12 12:49:33 +02:00
Joshua Quinones
003ad31ed5
Added documentation comments to the .NET library
...
Comments have been added for the following:
modules/mono/glue/GodotSharp/GodotSharp/Core/GodotTaskScheduler.cs
modules/mono/glue/GodotSharp/GodotSharp/Core/GodotSynchronizationContext.cs
modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/AssemblyHasScriptsAttribute.cs
modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/DisableGodotGeneratorsAttribute.cs
modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/ExportAttribute.cs
modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/GodotMethodAttribute.cs
modules/mono/glue/GodotSharp/GodotSharp/Core/Attributes/ScriptPathAttribute.cs
2022-06-11 21:37:40 -05:00
FireForge
4678736a39
Add suffixes to all nodes and resources
2022-06-11 09:41:05 -05:00
Fabio Alessandrelli
31d7e22466
[WebRTC] Static extension registration.
2022-06-09 07:19:00 +02:00
Rémi Verschelde
4e3b0e176b
Merge pull request #61682 from smix8/navigation_bake_config_precision_4.x
2022-06-08 16:06:00 +02:00
Rémi Verschelde
e4994e2817
Merge pull request #61739 from smix8/navigation_region_cost_4.x
2022-06-08 16:05:38 +02:00
Rémi Verschelde
07029e94f4
Merge pull request #61662 from smix8/navigation_map_cell_defaults_4.x
2022-06-08 15:56:22 +02:00
Rémi Verschelde
7e6f26c582
Merge pull request #61800 from smix8/navigation_gridmap_transform_debug_4.x
2022-06-08 15:40:09 +02:00
smix8
cb8d95c271
Fix GridMap Navigation transforms and debug
...
Fix GridMap navigation transforms and debug.
2022-06-08 14:19:16 +02:00
Rémi Verschelde
c8ce7e34e2
i18n: Misc fixes translation strings
...
Adds some translator comments to solve some questions raised on Weblate.
2022-06-08 12:57:54 +02:00
Rémi Verschelde
43f05bd6a0
Merge pull request #61797 from smix8/navigation_gridmap_region_xform_4.x
...
Fix GridMap applying wrong NavigationRegion transform
2022-06-08 07:25:09 +02:00
smix8
cc0b525300
Fix GridMap applying wrong NavigationRegion transform
...
Fix GridMap applying wrong NavigationRegion transform.
2022-06-08 03:30:19 +02:00
Rémi Verschelde
b33660228b
Merge pull request #61784 from Geometror/visualeditors_editorsettings_propagation
...
Fix visual editor settings change propagation
2022-06-07 21:03:13 +02:00
Hendrik Brucker
e4ba3b64f0
Fix visual editor settings change propagation
2022-06-07 19:17:47 +02:00
bruvzg
6e4cdad3ac
[TextServer] Adds support for TrueType / OpenType collection files (*.TTC, *.OTC).
2022-06-07 11:35:59 +03:00
smix8
cfdfd304f1
Add NavigationRegion costs for pathfinding
...
Add NavigationRegion costs for pathfinding.
2022-06-06 15:25:06 +02:00
bruvzg
b3bbf3db47
[GDExtension] Expose Variant, NodePath and StringName hash functions.
2022-06-06 12:19:56 +03:00
smix8
df9919ec33
Add warnings when NavigationMesh bake settings result in precision loss
...
Add warnings when NavigationMesh bake settings result in precision loss.
2022-06-04 11:31:52 +02:00
Nathan Franke
3d61246bc4
use correct error for unused bind match, suppress with underscore
2022-06-03 13:28:33 -05:00
smix8
3066091780
Match NavMap and ProjectSettings with NavigationMesh defaults
...
Match NavMap and ProjectSettings with NavigationMesh defaults since the NavMap edge merging requires a matching cell_size with the NavigationMesh to create connections without issues.
2022-06-03 19:17:49 +02:00
Rémi Verschelde
c0bf18e923
Merge pull request #57824 from raulsntos/csharp-typed-arrays
2022-06-03 17:32:41 +02:00
Raul Santos
329818f20b
Support explicit values in flag properties, add C# flags support
...
- Add support for explicit values in properties using `PROPERTY_HINT_FLAGS`
that works the same way it does for enums.
- Fix enums and flags in VisualScriptEditor (it wasn't considering the
explicit value).
- Use `PROPERTY_HINT_FLAGS` for C# enums with the FlagsAttribute instead
of `PROPERTY_HINT_ENUM`.
2022-06-03 05:19:01 +02:00
Raul Santos
8dec74f22f
Generate typed array parameters in C# bindings
...
Adds support for generating C# bindings that use the generic `Array<T>`
type instead of the non-generic `Array` type when the registered ClassDB
method specifies the array element type.
2022-06-03 05:17:53 +02:00
Haoyu Qiu
ffcb2a4702
Fix build error when FreeType is disabled
2022-06-02 22:46:50 +08:00
Rémi Verschelde
6cd730ea98
Merge pull request #61339 from lyuma/streampeerssl_get_stream
2022-06-02 00:27:07 +02:00
Rémi Verschelde
532e253a7c
Merge pull request #61455 from fire-forge/tab
...
Add color contrast to TabContainer backgrounds in the editor
2022-05-31 12:52:03 +02:00
Rémi Verschelde
c881f607a9
Merge pull request #61463 from vnen/gdscript-await-stack
...
GDScript: Fix stack overflow when using multiple `await`
2022-05-31 12:44:50 +02:00
Rémi Verschelde
68bf4eb100
Merge pull request #61440 from vnen/gdscript-scene-unique-nodes
...
GDScript: Support `%` in shorthand for `get_node`
2022-05-31 12:36:37 +02:00
Clay John
c89d2b8aac
Merge pull request #61475 from smix8/navigation_fix_multimesh_bake_crash_4.x
...
Fix MultiMeshInstance crash in navmesh baking when MultiMesh Resource is empty
2022-05-30 15:44:28 -07:00
Hendrik Brucker
70c234f3e3
Improve Graphedit connection lines
2022-05-30 17:33:01 +02:00
FireForge
7f7244f04a
Use consistent casing in editor filter/search bars
2022-05-28 18:43:16 -05:00
smix8
caceceab08
Fix MultiMeshInstance crash in navmesh baking when MultiMesh Resource is empty
...
Fix MultiMeshInstance crash in navmesh baking when MultiMesh Resource is empty
2022-05-27 19:35:00 +02:00
George Marques
eba3e0a9fc
GDScript: Support `%` in shorthand for `get_node`
...
The `%` is used in scene unique nodes. Now `%` can also be used instead
of `$` for the shorthand, besides being allowed generally anywhere in
the path as the prefix for a node name.
2022-05-27 13:46:18 -03:00
George Marques
328aadc0ef
GDScript: Fix stack overflow when using multiple `await`
2022-05-27 09:31:37 -03:00
FireForge
eb573da2b5
Use "odd" style for TabContainers on base BG color
...
- Use the "odd" style for TabContainers that are on a background with the same color as the default TabContainer background color to add contrast
2022-05-26 21:19:15 -05:00
Rémi Verschelde
f2a7bb6b51
Merge pull request #59943 from jordigcs/gdscript_warning_enums
...
Add enum values (Ignore, Warn, Error) to GDScript warnings
2022-05-26 00:52:01 +02:00
Lyuma
7e28385948
Add StreamPeerSSL.get_stream() accessor.
2022-05-25 12:43:19 -07:00
Nathan Franke
77c8f271e7
use ERR_FAIL_INDEX when preferred
2022-05-25 13:36:45 -05:00
Rémi Verschelde
410b6b5f7d
Merge pull request #55099 from dalexeev/desc-by-blank-line
...
Use blank line instead of `@desc:` for doc comments
2022-05-25 19:14:43 +02:00
Rémi Verschelde
e465b72b9b
Merge pull request #61389 from snailrhymer/lookup-fix
2022-05-25 18:38:29 +02:00
Danil Alexeev
320cf5d84c
Use blank line instead of `@desc:` for doc comments
2022-05-25 19:01:41 +03:00
SnailRhymer
3a87d1acae
Make Lookup Symbol recognize assert and preload in the script editor
2022-05-25 16:41:10 +01:00
Rémi Verschelde
6369e495fd
Merge pull request #61279 from Trioct/fix-typed-array-assignment
2022-05-25 17:28:22 +02:00
Trioct
bcbfa641ec
Fix const typed array assignment
2022-05-25 09:02:11 -05:00
SnailRhymer
688a62d841
Fix lookup_code to properly handle symbols at start of assignments
2022-05-25 11:45:57 +01:00
Rémi Verschelde
7da1c1b9fa
Merge pull request #61377 from smix8/navigation_gridmap_custom_mesh_offsets_4.x
2022-05-24 23:31:12 +02:00
smix8
ae4b2597a1
Fix GridMap not adding custom mesh offsets to NavigationMesh generation
...
Fix GridMap not adding custom mesh offsets to NavigationMesh generation
2022-05-24 19:50:57 +02:00
George Marques
24bcbe971a
GDScript: Don't show redundant await warning on unknown types
...
Also avoid it when the type is known to be a signal.
2022-05-24 14:37:50 -03:00
Rémi Verschelde
65dd1bf023
Merge pull request #47665 from trollodel/tree_more_buttons_signals
2022-05-24 10:50:55 +02:00
Rémi Verschelde
db5a86339b
Merge pull request #61345 from vnen/gdscript-lambda-issues
...
GDScript: A few fixes for lambda issues
2022-05-24 08:14:48 +02:00
George Marques
1b76a9d705
GDScript: Fix lambda captures in default argument values
2022-05-23 21:38:31 -03:00
George Marques
969f1980d2
GDScript: Fix `if` after lambda being seen as ternary
2022-05-23 21:13:25 -03:00
Rémi Verschelde
9923851370
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
2022-05-23 21:32:19 +02:00
George Marques
0a28b4cd94
GDScript: Do not allow standalone lambdas
...
They cannot be accessed in this case, so an error is shown to avoid
misleading the uses, especially in case of named lambdas.
2022-05-23 12:25:03 -03:00
Rémi Verschelde
7b8c574401
Merge pull request #61017 from derammo/derammo_58121
...
display of large help text in visual script
2022-05-22 01:26:33 +02:00
derammo
5a481bd340
display of large help text in visual script
...
implemented vertical scroller for help text in popup
disabled broken positioning code
2022-05-21 18:38:40 -04:00
trollodel
307427af89
Add the button pressed to some signals in Tree
2022-05-21 17:16:52 +02:00
reduz
45af29da80
Add a new HashSet template
...
* Intended to replace RBSet in most cases.
* Optimized for iteration speed
2022-05-20 22:40:38 +02:00
Rémi Verschelde
410893ad0f
Merge pull request #57660 from V-Sekai/gltf-extension-fixes
2022-05-20 18:50:53 +02:00
K. S. Ernest (iFire) Lee
d600e0bc00
Improve gltf extension GLTFDocument api.
2022-05-20 06:58:48 -07:00
Rémi Verschelde
03218889d0
Merge pull request #61213 from timothyqiu/csg-crash
...
Fix editor crash when opening scene with CSGMesh
2022-05-20 07:57:10 +02:00
Haoyu Qiu
de93286b1d
Fix editor crash when opening scene with CSGMesh
2022-05-20 10:47:29 +08:00
Aaron Franke
5dc3bfb80e
Use suffixes for units in nodes and resources
2022-05-19 14:34:27 -05:00
Rémi Verschelde
ce069fbe99
Merge pull request #61128 from smix8/navigation_agent_process_mode_4.x
2022-05-19 15:24:34 +02:00
Rémi Verschelde
b9bb3de6a1
Merge pull request #61142 from bruvzg/rtl_threaded
2022-05-19 14:27:48 +02:00
Aaron Record
900c676b02
Use range iterators for RBSet in most cases
2022-05-19 12:09:16 +02:00
bruvzg
cfcdfc38e2
[RTL] Add support for shaping in background thread.
2022-05-19 09:34:44 +03:00
Haoyu Qiu
fc3b845c07
Add dedicated macros for property name extraction
...
* Replace case-by-case extraction with PNAME & GNAME
* Fix group handling when group hint begins with property name
* Exclude properties that are PROPERTY_USAGE_NO_EDITOR
* Extract missing ADD_ARRAY*, ADD_SUBGROUP* macros
2022-05-19 14:08:47 +08:00
Hendrik Brucker
1654800ed7
Fix noise offset not affecting domain warp
...
- also added domain warp to get_noise_1d
2022-05-18 22:10:57 +02:00
Rémi Verschelde
cdc5da7460
Merge pull request #61025 from Chaosus/gds_fix_extend_crash
2022-05-18 16:17:18 +02:00
Rémi Verschelde
4155d555e3
Merge pull request #61151 from akien-mga/rvo2-document-changes
2022-05-18 16:16:55 +02:00
Rémi Verschelde
e22255edaf
Merge pull request #55201 from Scony/fix-unreachable-code-false-positive
2022-05-18 16:04:12 +02:00
Yuri Rubinsky
5d95a5a024
Fix crash when extending inner class in GDScript
2022-05-18 16:53:24 +03:00
Rémi Verschelde
86cdf1f2cf
rvo2: Sync with upstream commit bfc0486
...
bfc048670a
2022-05-18 14:53:52 +02:00
Saenoe
95ef3bafcd
fix OpenXRAPI::is_extension_supported returning opposite result
2022-05-18 00:33:22 +02:00
smix8
6b51ab66d8
Make Navigation Agents and Obstacles respect parent process mode
...
Temporarily removes agent from navigation map when parent node cannot process due to SceneTree pause and process_mode property. Normal process_mode does not work as other agents would still avoid the paused agents because they were still active on the navigation map and the rvo world. Also fixes potential crash when region_get_map or agent_get_map is called while no map is set.
2022-05-17 20:08:39 +02:00
bruvzg
93fba7ead3
Update HarfBuzz, ICU and FreeType.
...
HarfBuzz: Update to version 4.2.1
FreeType: Update to version 2.12.1
ICU: Update to version 71.1
2022-05-17 18:39:31 +03:00
Rémi Verschelde
5b02415fd0
Merge pull request #55134 from KoBeWi/script_pillow_or_something
...
Always soft-reload scripts
2022-05-17 15:09:09 +02:00
Hendrik Brucker
1684459a3a
Fix domain warp fractal type defaulting to the wrong value (and refactor enum conversion)
2022-05-16 18:21:42 +02:00
Rémi Verschelde
dc8c906b64
Merge pull request #58624 from dzil123/fix_update_gridmap_cursor
2022-05-16 15:31:11 +02:00
Rémi Verschelde
eaa4e86433
Merge pull request #61061 from smix8/navigation_mesh_sample_distance_range_4.x
2022-05-16 15:05:17 +02:00
smix8
e33fa9d833
Clamp NavigationMesh sample_distance above zero
...
While default ReCast library has support for 0.0 'sample_distance' the Godot implementation does not an crashes.
Previously Godot would set all sample_distance values below 0.9 to 0 which causes the crashes.
This limits the sample_distance range selection to 0.1 - 16.0 and also clamps sample_distance that are below 0.1 before ReCast receives them.
2022-05-16 14:25:20 +02:00
Rémi Verschelde
c41f62c3df
Merge pull request #61003 from vnen/gdscript-await-stack-fix
2022-05-16 14:10:29 +02:00
Rémi Verschelde
b154f445d5
Merge pull request #60507 from bruvzg/textmesh
...
Implement TextMesh.
2022-05-16 13:52:57 +02:00
Rémi Verschelde
df2de05c5f
Merge pull request #60463 from Geometror/improve-vs-1
2022-05-16 13:50:42 +02:00
Rémi Verschelde
54ee0520b5
Merge pull request #61010 from derammo/visual_script_selector_paths
2022-05-16 13:49:31 +02:00
Rémi Verschelde
f3c0e75fba
Merge pull request #60958 from smix8/navigation_server_rid_utility_4.x
2022-05-16 13:46:49 +02:00
reduz
746dddc067
Replace most uses of Map by HashMap
...
* Map is unnecessary and inefficient in almost every case.
* Replaced by the new HashMap.
* Renamed Map to RBMap and Set to RBSet for cases that still make sense
(order matters) but use is discouraged.
There were very few cases where replacing by HashMap was undesired because
keeping the key order was intended.
I tried to keep those (as RBMap) as much as possible, but might have missed
some. Review appreciated!
2022-05-16 10:37:48 +02:00
derammo
4e155b5579
fixed path calculations in visual script selector
...
incorrect usage of lstrip was mangling file names
2022-05-13 19:26:27 -04:00
George Marques
102c312497
GDScript: Fix stack manipulation for `await`
...
The stack now contains three special addresses that should no be copied
to the state, since it contains references that creates cycles. They can
be recreated when the function is resumed.
This commit also removes the clearing of stack from the
GDScriptFunctionState destructor, since it should be cleared when the
function exits. The state stack should only be cleared manually if the
instance is freed before the state resumes (which is already being
done). Otherwise this would destruct the stack twice, causing crashes.
2022-05-13 20:15:34 -03:00
Rémi Verschelde
9ed56be82d
Merge pull request #60989 from Jojox/fix_gdscript_parser_enum
2022-05-13 14:55:55 +02:00
bruvzg
05963674a7
Implement TextMesh resource.
...
Apply simulated slant and embolden to the TextServer `gont_get_glyph_contours` results.
2022-05-13 08:20:22 +03:00
JoJoX
8870e1c75d
Fix first value update
2022-05-12 19:11:33 -04:00
Rémi Verschelde
947a1fa090
Merge pull request #60956 from macjuul/hide-mono-cmd-prompt
...
Prevent blank command prompts from spawning when building a mono project
2022-05-12 21:23:00 +02:00
smix8
371054e3e5
Add NavigationServer2D/3D API functions to find missing RID info
...
Utility functions for NavigationServer2D/3D to find missing RID information when working with Server API directly. e.g. from map to regions and agents, from agent or region to map, from region to map and agents and so on ....
Requirement to work with NavigationServer API exklusive without SceneTree nodes and when juggling agents and regions between multiple navigation maps.
2022-05-12 20:23:19 +02:00
Yuri Rubinsky
a439832035
Fix signal completion in GDScript editor
2022-05-12 16:10:48 +03:00
Julian Mills
d606a8eded
Fix blank command prompts spawning
...
prevent certain mono actions from displaying empty command prompts.
2022-05-12 13:49:37 +02:00
bruvzg
6783d55ce4
Use new HashMap implementation in the TextServer, and Font.
2022-05-12 13:42:25 +03:00
reduz
8b7c7f5a75
Add a new HashMap implementation
...
Adds a new, cleaned up, HashMap implementation.
* Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing ).
* Keeps elements in a double linked list for simpler, ordered, iteration.
* Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much
for performance vs keeping the key, but helps replace old code).
* Uses a more modern C++ iterator API, deprecates the old one.
* Supports custom allocator (in case there is a wish to use a paged one).
This class aims to unify all the associative template usage and replace it by this one:
* Map<> (whereas key order does not matter, which is 99% of cases)
* HashMap<>
* OrderedHashMap<>
* OAHashMap<>
2022-05-12 11:21:29 +02:00
Yuri Rubinsky
be8eb6625e
Fix incorrect precedence of pow operator in GDScript
2022-05-12 10:09:51 +03:00
Rémi Verschelde
516ec892b4
Merge pull request #60945 from smix8/navmesh_bake_size_warning_4.x
...
Add Warning to NavigationMesh bake when source geometry is suspiciously big
2022-05-11 23:17:12 +02:00
smix8
79511af7c9
Add Warning to NavigationMesh bake when source geometry is suspiciously big
...
Adds Warning when users try to bake a NavigationMesh with suspiciously big source geometry and small cellsizes as this baking process will likely fail or result in a NavigationMesh that will create serious pathfinding performance issues.
2022-05-11 22:06:54 +02:00
Rémi Verschelde
9c746b3213
Merge pull request #60949 from derammo/derammo_openxr_wrong_conditional
2022-05-11 20:05:54 +02:00
Rémi Verschelde
ae8dacba1c
Merge pull request #60617 from BastiaanOlij/split_bokeh_effect
2022-05-11 20:05:21 +02:00
derammo
0571148a4b
corrected conditional compile of OpenXR with/without opengl3 driver
2022-05-11 11:25:55 -04:00
Yuri Roubinsky
dbd7a31507
Implement exponential operator (**) to GDScript/Expressions
2022-05-11 16:30:37 +03:00
Rémi Verschelde
9963ae3553
Merge pull request #59863 from cdemirer/fix-match-multiple-bind-single-pattern
...
Fix issues with multiple bind patterns in match statement
2022-05-11 14:18:02 +02:00
Rémi Verschelde
c171f675c8
Merge pull request #60229 from Dorodri/improve-gdscript-range-description
2022-05-11 14:17:39 +02:00
Rémi Verschelde
505e15c523
Merge pull request #60732 from CalebJohn/matching_signature_regression_test
2022-05-11 14:15:48 +02:00
Bastiaan Olij
9939cfc4c4
Split out bokeh_dof and copy effects
2022-05-11 11:08:56 +10:00
bruvzg
ffe61e0895
[macOS / iOS] Fix text-to-speech build with older macOS / iOS SDK.
...
Add __has_include check for AVFAudio include.
Add some explicit casts to avoid conflicts.
Change all `include`s to `import`s for consistency.
2022-05-10 21:11:34 +03:00
Rémi Verschelde
edf61c077c
Merge pull request #60917 from akien-mga/ci-emscripten-3.1.10
2022-05-10 15:08:32 +02:00
Rémi Verschelde
d8935b27a9
Fix warnings found by Emscripten 3.1.10
...
Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and
`-Wliteral-range` warnings.
2022-05-10 13:03:13 +02:00
bruvzg
68304bec47
[TextServer] Fix incorrect oversampled font scaling.
2022-05-10 13:57:18 +03:00
hoontee
b869ec7262
Rename `CSGPrimitive3D.invert_faces` to `flip_faces`
2022-05-06 20:51:46 -05:00
kobewi
7b101c6fe7
Fix VisualScript export variables
2022-05-06 16:00:30 +02:00
Rémi Verschelde
61517b6d39
Merge pull request #59720 from Vitika9/itemlist-signals
2022-05-06 10:46:47 +02:00
Vitika9
aef3b5681d
Changed signals of ItemList
2022-05-06 13:09:04 +05:30
Rémi Verschelde
f4ece7e736
Merge pull request #60609 from nathanfranke/string-quotes
2022-05-06 08:59:08 +02:00
kobewi
1dc7bcc83c
Cleanup metadata usage
2022-05-06 00:27:10 +02:00
Rémi Verschelde
e7a58a7eb6
Core: Rename math 'phi' arguments to 'angle'
2022-05-05 14:17:39 +02:00
Fabio Alessandrelli
09a48e1055
[WebSocket] Fix WSLClient connection status.
...
Note, this keeps the old behaviour of reporting CONNECTION_CONNECTED
while disconnecting.
We should change this before 4.0, but needs further refactoring of the
WebSocket classes.
2022-05-04 20:13:32 +02:00
Rémi Verschelde
84f64ddde9
Merge pull request #60723 from reduz/refactor-module-initialization
2022-05-04 19:08:43 +02:00
reduz
de0ca3b999
Refactor module initialization
...
* Changed to use the same stages as extensions.
* Makes the initialization more coherent, helping solve problems due to lack of stages.
* Makes it easier to port between module and extension.
* removed the DRIVER initialization level (no longer needed).
2022-05-04 17:34:51 +02:00
CalebJohn
06a2d83e30
Add regression test for gdscript valid function signature
...
Previously, there was an issue where the gdscript analyzer incorrectly
riased a validation error for code that had a default Dictionary, Array,
or custom type.
2022-05-03 12:46:09 -07:00
Nathan Franke
58fcad20ef
quote strings inside arrays and dictionaries
2022-05-03 13:37:13 -05:00
Aaron Franke
fa7a7795f0
Rename Basis get_axis to get_column, remove redundant methods
2022-05-03 09:37:47 -05:00
Rémi Verschelde
8aa791d166
Merge pull request #59321 from Calinou/primitive-meshes-csg-tweak-default-sizes
...
Decrease default sizes of some primitive and CSG meshes for consistency
2022-05-03 15:19:30 +02:00
Rémi Verschelde
931838b330
Merge pull request #60627 from aaronfranke/rename-elements
...
Rename Transform2D and Basis `elements` to `columns` and `rows` respectively
2022-05-03 14:40:01 +02:00
Rémi Verschelde
297241f368
Merge pull request #60714 from Calinou/typedef-remove-ref
...
Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`
2022-05-03 14:28:18 +02:00
Rémi Verschelde
262018df1e
Merge pull request #60689 from trollodel/use_collisionobject3d_in_navmeshgen
2022-05-03 11:21:08 +02:00
Fabio Alessandrelli
0275d60c1b
Merge pull request #60444 from snailrhymer/expand-websocketclient-error-messages
...
Add detail to some error messages in wsl_client
2022-05-03 06:07:09 +02:00
Hugo Locurcio
180e5d3028
Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`
...
These typedefs don't save much typing compared to the full `Ref<Resource>`
and `Ref<RefCounted>`, yet they sometimes introduce confusion among
new contributors.
2022-05-03 01:43:50 +02:00
Rémi Verschelde
c273ddc3ee
Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`
...
Didn't commit all the changes where it wants to initialize a struct
with `{}`. Should be reviewed in a separate PR.
Option `IgnoreArrays` enabled for now to be conservative, can be
disabled to see if it proposes more useful changes.
Also fixed manually a handful of other missing initializations / moved
some from constructors.
2022-05-02 16:28:25 +02:00
trollodel
72c37c4bcd
Use CollisionObject3D API when baking the navmesh with static colliders, instead of collecting CollisionShape3D nodes
2022-05-02 08:41:33 +02:00
Haoyu Qiu
3012b76ec5
Validate image size for Noise get image methods
2022-05-01 15:53:27 +08:00
Eduardo Rodrigues
b2841ce194
Improve description for GDScript built-in range
...
Rewrites the definition of how the function works.
Reworks the style of the examples and adds a negative range example.
Changes the while loop to a range loop in the array backwards example.
2022-04-30 15:17:17 -03:00
Hendrik Brucker
6d876baf60
Improve the VisualShader/VisualScript editor UI
2022-04-30 03:56:57 +02:00
Aaron Franke
1bf94dff3a
Rename Basis "elements" to "rows"
2022-04-29 08:02:56 -05:00
Aaron Franke
b831fb0a54
Rename Transform2D "elements" to "columns"
2022-04-29 08:02:39 -05:00
bruvzg
6ab672d1ef
Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and Windows.
...
Implement TextServer word break method.
2022-04-28 14:35:41 +03:00
Markus Sauermann
a793960a10
Fix cppcheck const parameters
...
Convert method signature parameters to const where it is possible
# Conflicts:
# drivers/gles3/rasterizer_canvas_gles3.cpp
# drivers/gles3/rasterizer_canvas_gles3.h
# editor/plugins/animation_state_machine_editor.cpp
# editor/plugins/animation_state_machine_editor.h
2022-04-28 11:35:39 +02:00
Hugo Locurcio
53b8899be9
Decrease default sizes of some primitive and CSG meshes for consistency
2022-04-27 22:45:38 +02:00
Rémi Verschelde
6e6fe2b025
Merge pull request #59582 from Faless/net/4.x_tcp_explicit_poll
2022-04-27 13:56:58 +02:00
Rémi Verschelde
f626e8ef91
Merge pull request #60396 from vnen/gdscript-self-lambda
2022-04-27 13:11:24 +02:00
Rémi Verschelde
e2f29a4312
Merge pull request #59381 from gaudecker/fix-csg-gizmos
2022-04-27 12:54:29 +02:00
Rémi Verschelde
3dd550e1ca
Merge pull request #59613 from PastMoments/dict-arr-const-fix
2022-04-27 12:45:30 +02:00
Rémi Verschelde
f05ec69158
Merge pull request #60384 from timothyqiu/noise-skirt
2022-04-27 12:44:06 +02:00
Rémi Verschelde
d22850234c
Merge pull request #59393 from techiepriyansh/move-gltf-export-under-scene-menu
2022-04-27 11:51:49 +02:00
Rémi Verschelde
523a7ecef3
Merge pull request #60481 from V-Sekai/animation-library-gltf
2022-04-27 11:07:22 +02:00
Rémi Verschelde
b3f4a81a9e
Merge pull request #60385 from timothyqiu/openxr-set-array
2022-04-27 10:14:42 +02:00
Rémi Verschelde
8dfa12cae7
Merge pull request #59979 from bruvzg/cpp_check2
2022-04-27 10:08:26 +02:00
Rémi Verschelde
3541890f4d
Merge pull request #60312 from Geometror/improve-noise-2
...
Restructure and refine the noise module
2022-04-27 08:00:38 +02:00
bruvzg
40f0b23482
Create NavMap thread pool only when it's used, to prevent creating excessive amount of running threads.
2022-04-26 15:00:00 +03:00
Rémi Verschelde
c45202a89b
Merge pull request #60359 from adamscott/nav-map-thread-work-pool
2022-04-26 11:51:02 +02:00
Rémi Verschelde
cb5f3a39b9
Merge pull request #60418 from ShimmyShaman/master
2022-04-26 11:11:08 +02:00
Rémi Verschelde
bc520e443d
Merge pull request #60436 from Scony/fix-map-get-path-crash
...
Fix crash in `GodotNavigationServer::map_get_path`
2022-04-25 23:13:59 +02:00
Rémi Verschelde
bef00b2b0d
Merge pull request #60445 from nathanfranke/minor-changes
...
small changes: improve OS.get_name classref, misc/scripts fixes, remove trailing quote
2022-04-25 23:10:48 +02:00
Rémi Verschelde
faddbcfc0c
Merge pull request #60394 from Chaosus/fix_range_doc
2022-04-25 17:20:45 +02:00
Rémi Verschelde
02bb8e948f
Merge pull request #60261 from fire-forge/theme-prop-renames
2022-04-25 16:20:19 +02:00
Rémi Verschelde
63a052d96b
Merge pull request #60386 from bruvzg/label3d
2022-04-25 15:51:31 +02:00
George Marques
01d13ab2c1
GDScript: Allow using self in lambdas
2022-04-24 21:49:02 -03:00
K. S. Ernest (iFire) Lee
6184c6a338
Merge pull request #59763 from Gallilus/Improve-VisualScript-search-and-instancing-of-nodes
...
Improve VisualScript search and instancing of nodes
2022-04-24 06:21:57 -07:00
K. S. Ernest (iFire) Lee
44b6ee001e
Discard images from gltf import for the animation library.
...
This is an optimization.
2022-04-23 17:41:34 -07:00
FireForge
3073b85de9
Rename theme properties to include underscores
...
- check_vadjust -> check_v_adjust
- close_h_ofs -> close_h_offset
- close_v_ofs -> close_v_offset
- commentfocus -> comment_focus
- hseparation -> h_separation
- ofs -> offset
- selectedframe -> selected_frame
- state_machine_selectedframe -> state_machine_selected_frame
- table_hseparation -> table_h_separation
- table_vseparation -> table_v_separation
- vseparation -> v_separation
2022-04-23 11:16:18 -05:00
Nathan Franke
1304d72fc1
improve OS.get_name classref, misc/scripts fixes, remove trailing quote
2022-04-22 17:13:08 -05:00
SnailRhymer
da8bfbf278
Add detail to some error messages in wsl_client
...
Add messages, and add expected and actual values to other messages in _verify_headers for easier troubleshooting.
2022-04-22 22:00:06 +01:00
Pawel Lampe
66856d5fb0
Fix crash in `GodotNavigationServer::map_get_path`
2022-04-22 18:49:45 +02:00
bruvzg
be611c1c05
Implement Label3D node.
...
Add "generate_mipmap" font import option.
Add some missing features to the Sprite3D.
Move BiDi override code from Control to TextServer.
Add functions to access TextServer font cache textures.
Add MSDF related flags and shader to the standard material.
Change standard material cache to use HashMap instead of Vector.
2022-04-22 12:08:46 +03:00
ShimmyShaman
b3922a42e9
improved error msg for gdscript load_source_code
2022-04-22 16:10:48 +12:00
Yuri Roubinsky
540fca147d
Fix typo in `GDScript::range` doc
2022-04-20 19:38:49 +03:00
bruvzg
de4c97758a
Fix more issues found by cppcheck.
2022-04-20 10:34:00 +03:00
Haoyu Qiu
925e8c8f3e
Validate input in OpenXR array setter
2022-04-20 11:00:58 +08:00
Haoyu Qiu
0e5c41857c
Validate input in NoiseTexture::set_seamless_blend_skirt()
2022-04-20 10:47:28 +08:00
Adam Scott
732102cbc5
Use ThreadWorkPool instead of thread_process_array in NavMap
2022-04-19 18:35:15 -04:00
Hendrik Brucker
bde6fc9c82
Restructure and refine the noise module
2022-04-19 19:49:48 +02:00
PastMoments
b3704e664d
Fixes GDScript define nested dictionary and array as constants #50285
2022-04-19 08:57:23 -04:00
Clay John
1d2177938d
Merge pull request #59984 from BastiaanOlij/more_storage_20220407
...
More work on splitting up RendererStorage
2022-04-18 21:27:46 -07:00
Ellen Poe
afd2bbaa5f
Fix ogg edge cases
2022-04-17 14:21:35 -07:00
David Cambré
8d4b2b0c30
Improve VisualScript search and instancing of nodes
...
Constructors are more accessible.
Basic type methods are now based on ClassDB and not registerd_node_names.
Selecting search_classes now automatically changes the scope.
2022-04-17 15:21:26 +02:00
FireForge
6fac7158d6
Add spaces to FastNoiseLite enum hint names
2022-04-16 23:51:23 -05:00
Bastiaan Olij
6b28d94e77
Merge canvas and decal into TextureStorage and add render target
2022-04-17 12:59:50 +10:00
Rémi Verschelde
7032b111ce
Merge pull request #60007 from aaronfranke/gds-op-adj-tr3d
...
GDScript: Rename OPCODE_TYPE_ADJUST_TRANSFORM to have a 3D suffix
2022-04-15 08:17:27 +02:00
kleonc
9ab69b89f8
NavMap::get_path Fix not resetting least_cost_id
2022-04-14 17:13:53 +02:00
Rémi Verschelde
970debed93
Merge pull request #60177 from reduz/animation-library-import
...
Import scenes as AnimationLibrary
2022-04-13 22:47:54 +02:00
reduz
66009318e0
Import scenes as AnimationLibrary
...
Added the ability to import scenes as AnimationLibrary
* Completes implementation of https://github.com/godotengine/godot-proposals/issues/4296
* Helps if you want to export animations to a separate file (say a GLTF) to avoid re-importing/exporting them every time the model changes.
* Helps if you simply want to have animations using a dummy model, which can be shared across multiple models.
Creates a secondary scene importer used only for animations.
**NOTE**: A new flag for scene importer: EditorSceneFormatImporter.IMPORT_DISCARD_MESHES_AND_MATERIALS has been added, to hint importers that they should skip meshes and animations (and hence make importing faster). It is not implemented in any importer yet, this should be done in a separate PR.
2022-04-13 15:06:56 +02:00
Rémi Verschelde
46ef52162e
Color: Rename `to_srgb`/`to_linear` to include base color space
...
This helps reduce confusion around sRGB <> Linear conversions by making
both input and output color spaces explicit.
2022-04-13 11:45:52 +02:00
Fabio Alessandrelli
7fab11da0c
Merge pull request #40975 from rohanrhu/master
...
Added set_extra_headers() to WebSocketServer
2022-04-12 23:04:26 +02:00
Oğuzhan Eroğlu
fd4341fba4
Added set_extra_headers() to WebSocketServer
2022-04-12 17:50:53 +03:00
Priyansh Rathi
0ea7780e33
move gltf export under scene menu
2022-04-12 19:42:41 +05:30
Nicholas Huelin
e8a326a08f
Fix Visual Script's jump to function relative to zoom
...
When double-clicking on a function name the graph will now correctly jump to the function relative to the zoom ratio.
2022-04-12 15:27:49 +02:00
bruvzg
4bf99f4af2
Narrow FileAccess scope to prevent deadlocks.
2022-04-12 10:54:39 +03:00
Josh Kabo
1570bcd03b
catch null profile_def causing crash on startup
2022-04-11 08:55:23 -07:00
Rémi Verschelde
4ab86c6731
Merge pull request #59980 from reduz/animation-libraries
2022-04-11 14:18:35 +02:00
reduz
6f401439f8
Implement Animation Libraries
...
* Instead of containing single animations, AnimationPlayer now contains libraries.
* Libraries, in turn, contain the animations.
This paves the way for implementing the possibility of importing scenes as animation libraries, finally allowing to import animations separate from the 3D models.
Missing (will be done on separate PRs):
* Make it possible to import scenes (dae/fbx/gltf) as animation libraries.
* Make it possible for AnimationTree to import animation libraries on its own, so it does not rely on AnimationPlayer for everything.
2022-04-11 12:51:54 +02:00
bruvzg
9381acb6a4
Make FileAccess and DirAccess classes reference counted.
2022-04-11 13:28:51 +03:00
Rémi Verschelde
831dc74b1f
Merge pull request #59940 from BastiaanOlij/xr_new_controllers_20220405
2022-04-11 11:38:39 +02:00
Rémi Verschelde
eb6ebdc4af
Merge pull request #59995 from Scony/fix-threaded-navmesh-baking
...
Fix navmesh baking
2022-04-09 01:27:55 +02:00
Pawel Lampe
fcd26b8841
Fix navmesh baking
...
- improved mesh data calculation from standalone static colliders so that no
VisualServer calls are performed - and thus no VS mutexes need to
be locked in case of on-thread baking
- improved the same for GridMap's static colliders
2022-04-08 21:01:59 +02:00
George Marques
cdbd6056ef
GDScript: Fix method call on singletons
2022-04-08 12:20:57 -03:00
Aaron Franke
f3eca5abef
GDScript: Rename OPCODE_TYPE_ADJUST_TRANSFORM to have a 3D suffix
2022-04-07 23:32:56 -05:00
Rémi Verschelde
d4b54e35f9
Fix path handling in FBX and Blend importers
...
Fixes #59996 .
2022-04-07 23:33:28 +02:00
David Maziarka
1f62965d26
Add built-in Variant types to autocompletion list
...
Co-authored-by: Gustav <gusan092@student.liu.se>
2022-04-07 11:10:19 -05:00
Rémi Verschelde
4d0fdf2e98
Merge pull request #59947 from vnen/gdscript-static-methods-classdb
2022-04-06 20:57:34 +02:00
George Marques
4710e2b278
GDScript: Add support for static method calls in native types
2022-04-06 14:14:38 -03:00
jordi
14bad75206
Add enum values (Ignore, Warn, Error) to GDScript warnings
2022-04-06 10:57:33 -05:00
Bastiaan Olij
f8dab282cb
Added missing interaction profiles and making sure related extensions are enabled if available
2022-04-06 23:00:26 +10:00
bruvzg
f851c4aa33
Fix some issues found by cppcheck.
2022-04-06 14:34:37 +03:00
Eeli Reilin
60f3d1d36f
Fix CSG gizmos only working on root shapes
2022-04-06 13:36:34 +03:00
Rémi Verschelde
5d55846715
Merge pull request #59862 from bruvzg/font_delay_texture_update
...
Delay font texture update, until `draw` is called. Rasterize glyphs during shaping.
2022-04-06 08:39:45 +02:00
Rémi Verschelde
e4f0fc50f7
Merge pull request #59930 from Scony/fix-navi-get-simple-path-master
...
Fix `map_get_path` aka `get_simple_path` behavior in 2D & 3D
2022-04-05 23:55:47 +02:00
Pawel Lampe
dcab82ad43
Fix get_simple_path behavior in 2D & 3D
2022-04-05 23:26:37 +02:00
Paweł Fertyk
79b4844be5
Fix `NoiseTexture._generate_texture` crash
...
Fixes #59915 .
2022-04-05 22:24:58 +02:00
Rémi Verschelde
77843355a0
CI: Update black formatter and apply changes
2022-04-05 17:43:12 +02:00
bruvzg
aad9d1414c
Delay font texture update, until `draw` is called. Rasterize glyphs during shaping.
2022-04-05 10:49:41 +03:00
Rémi Verschelde
b512fe67a6
Merge pull request #59888 from akien-mga/clang-tidy
2022-04-04 23:57:30 +02:00
Rémi Verschelde
db8e6bd83f
Merge pull request #59885 from Jayman2000/autoload-inheritance-message
2022-04-04 23:56:20 +02:00
Jason Yundt
1cc7e7ec33
Improve autoload inheritance error message
...
Autoloaded scripts should always inherit from Node. When you run a
project that tries to autoload a script which doesn’t inherit from Node,
then Godot gives an error.
Before this change, the error said “Script does not inherit a Node”.
That error message is a little bit misleading. If a class inherits a
Node, then one of its superclasses has a Node. If a class inherits
_from_ Node, then one of its superclasses is Node. This change corrects
that mistake.
Fixes #59884 .
2022-04-04 15:51:02 -04:00
Rémi Verschelde
b78aa4fe19
Style: Apply clang-tidy to current code, add `readability-redundant-member-init`
2022-04-04 21:49:51 +02:00
Rémi Verschelde
f8ab79e68a
Zero initialize all pointer class and struct members
...
This prevents the pitfall of UB when checking if they have been
assigned something valid by comparing to nullptr.
2022-04-04 19:49:50 +02:00
Rémi Verschelde
338b23d572
Merge pull request #59513 from BastiaanOlij/openxr_actionmap_editor
2022-04-04 14:26:28 +02:00
Bastiaan Olij
9b7b9de0e5
Add action map editor for OpenXR
2022-04-04 18:43:29 +10:00
cdemirer
3c5b9d1be3
Fix issues with multiple bind patterns in match statement
2022-04-04 15:47:08 +08:00
Marc Gilleron
277825e956
Initialize pointer variables to fix random crash on startup.
...
`configure_blender_dialog` is lazily created if equal to null,
however nothing really sets it to null.
2022-04-03 23:21:29 +01:00
Rémi Verschelde
c630c2001d
Merge pull request #59633 from EricEzaM/better-code-complete-update
...
Improve sorting of Code Completion options.
2022-04-03 12:34:00 +02:00
dzil123
726614ff4b
fix gridmap cursor showing the wrong mesh
2022-04-02 01:53:36 -07:00
Eric M
4ab605d14d
Improve sorting of Code Completion options.
...
Done by ordering options by their location in the code - e.g. local, parent class, global, etc.
2022-04-01 20:39:09 +10:00
Rémi Verschelde
4263f02f28
Merge pull request #59764 from reduz/blender-import-autodetect
2022-04-01 11:42:05 +02:00
reduz
e32215fbad
Add Blender install autodetection and configuration.
...
This PR is a continuation to #54886
* Changed Blender path editor setting from binary to installation.
* Add a class to query whether the format is supported.
* This class allows to create proper editors to configure support.
**NOTE**: This PR only provides autodetection on Linux. Code needs to be added for Windows and MacOS to autodetect the Blender installation.
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
Co-authored-by: Pedro J. Estébanez <pedrojrulez@gmail.com>
2022-04-01 11:01:12 +02:00
FireForge
60dfe76e1f
Fix group name in FastNoise and Gradient
2022-03-31 21:21:04 -05:00
Rémi Verschelde
340ad7d748
Merge pull request #59755 from V-Sekai/import-gltf-mat-placeholder
2022-04-01 01:12:16 +02:00
Rémi Verschelde
47d58b5a97
Merge pull request #59753 from V-Sekai/let-there-be-light
2022-03-31 22:21:23 +02:00
K. S. Ernest (iFire) Lee
d8b3d14d82
Add support for Blend importing of material placeholders.
...
Couldn't get the 'NONE' option to work.
2022-03-31 10:11:06 -07:00
K. S. Ernest (iFire) Lee
b675a6b9de
Allow importing punctual lights from Blend.
2022-03-31 09:34:12 -07:00
bruvzg
947d7c8329
Fix some issues found by clang sanitizers.
2022-03-31 18:35:56 +03:00
bruvzg
4d9689e7f6
[Brotli] Use aligned reads when building with sanitizers.
2022-03-31 18:00:49 +03:00
Rémi Verschelde
a647fb3e62
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
Fix a couple incorrect uses of gendered pronouns.
2022-03-31 14:07:29 +02:00
bruvzg
824927dc50
[ICU] Add library name suffix for API rename to avoid conflicts (GDExtension build).
2022-03-31 13:04:54 +03:00
Rémi Verschelde
5ba3b993d5
Merge pull request #59694 from vnen/gdscript-better-call-super
2022-03-30 17:58:11 +02:00
Rémi Verschelde
543c5658ba
Merge pull request #58983 from Chaosus/gds_fix_builtin_methods_completion
2022-03-30 17:33:27 +02:00
George Marques
be718285f7
GDScript: Fix issues with completion and `super` calls
...
- Make call errors use the call node instead of the calle, which will be
empty on super calls.
- Don't allow `super()` to be used within lambdas.
2022-03-30 11:58:29 -03:00
Yuri Roubinsky
0584387918
Fix autocompletion of static methods in built-in types in GDScript
2022-03-30 17:40:41 +03:00
K. S. Ernest (iFire) Lee
0a6889d834
Add fbx2gltf support for importing .fbx files
...
Lets you drag or place .fbx files in the project folder and it will import the files.
An editor setting sets the location of the fbx2gltf binary.
Enables .fbx and .blend by default.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-03-30 15:22:46 +02:00
Rémi Verschelde
33d477498e
Remove ad-hoc FBX importer
...
This importer was the fruit of a lot of amazing reverse engineering
work by RevoluPowered, based on the original Assimp importer that was
introduced by fire.
While promising and well tuned for a specific type of FBX scenes, it
was found to have many flaws to support the many FBX exporters and
legacy models that Godot users want to use. As we currently lack a
maintainer to improve it, those issues are left unresolved and FBX
import is still sub-par in the current Godot releases.
After some experimentation, we're instead adding a new importer that
relies on Facebook's `fbx2gltf` command line tool to convert FBX to
glTF, so that we can then use our well-maintained glTF importer.
See #59653 and https://github.com/facebookincubator/FBX2glTF for details.
2022-03-30 13:04:31 +02:00
reduz
45f74ceb85
Add PortableCompressedTexture
...
* Resource that allows saving textures embedded in scenes or standalone.
* Supports only formats that are portable: Lossy, Lossles or BasisUniversal
This is something I wanted to add for a long time. I made it now because @fire
requires it for importing GLTF2 files with embedded textures, but also this
will allow saving Godot scenes as standalone binary files that will run
in all platforms (because textures will load everywhere).
This is ideal when you want to distribute individual standalone assets online
in games that can be built from Godot scenes.
2022-03-30 10:39:41 +02:00
Rémi Verschelde
dab46db619
Merge pull request #59507 from bruvzg/openxr_move_proj_settings
...
Move OpenXR project settings to the main, to make them visible on unsupported platforms.
2022-03-29 23:48:16 +02:00
bruvzg
d2add64f91
Move OpenXR project settings to the main, to make them visible on unsupported platforms.
2022-03-29 23:25:33 +03:00
K. S. Ernest (iFire) Lee
9484ee7a9e
Add support for importing .blend files
...
Lets you drag or place .blend files in the project folder and it will import the files.
Checks for Blender 3.0's gltf2 `export_keep_originals` option.
Add basepath support to GLTFDocument append_from_file.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-03-29 21:54:41 +02:00
Rémi Verschelde
da346ed4ad
Merge pull request #59583 from V-Sekai/svg-crash
2022-03-29 19:33:30 +02:00
K. S. Ernest (iFire) Lee
683b61b094
Set threads to be one to avoid SVG crash.
2022-03-29 10:05:43 -07:00
Rémi Verschelde
3b4e94c8b5
Merge pull request #59660 from timothyqiu/fbx-reg
2022-03-29 10:41:19 +02:00
Haoyu Qiu
c17d9f05f8
Simplify FBX importer project settings registering
2022-03-29 15:00:43 +08:00
bruvzg
ea4d62dca3
[ICU] Add library name suffix for API rename to avoid conflicts.
2022-03-29 08:38:21 +03:00
Rémi Verschelde
5149db8d85
Merge pull request #59644 from akien-mga/template-no-editor-dep
2022-03-28 23:35:51 +02:00
Rémi Verschelde
8c12dfe099
Merge pull request #56718 from Geometror/noise-overhaul
2022-03-28 21:59:18 +02:00
Rémi Verschelde
45ec0e31c3
Remove last editor code dependencies in template build
...
SConstruct change also makes it possible to outright delete the `editor`
folder in a `tools=no` build, which we use in CI to ensure no invalid
cross-dependencies are added.
2022-03-28 21:13:01 +02:00
Rémi Verschelde
1ae8b2de38
Merge pull request #59636 from akien-mga/string-remove-ttr
2022-03-28 21:12:44 +02:00
Rémi Verschelde
0c7a15d777
Merge pull request #59641 from Sauermann/fix-encoder-compiler-warning
2022-03-28 20:43:34 +02:00
Rémi Verschelde
80d4f35215
Merge pull request #59626 from lufog/const_ref
2022-03-28 20:29:53 +02:00
Rémi Verschelde
7119d355eb
String: Remove TTR and DTR defines in non-tools build
...
This ensures we don't use TTR in runtime code, as it's specifically meant
to source translations for the editor.
2022-03-28 20:26:35 +02:00
Rémi Verschelde
4799009a0f
Merge pull request #59631 from akien-mga/websocket-no-tools-disable-editor-code
...
Modules: Don't build editor-specific classes in templates
2022-03-28 19:56:20 +02:00
Markus Sauermann
759d04e28e
basisu_uastc_enc.cpp was included twice in encoder_sources
2022-03-28 19:34:03 +02:00
Rémi Verschelde
5fe6984639
Modules: Don't build editor-specific classes in templates
...
They're moved to an `editor` subfolder so that we can easily handle them
separately.
2022-03-28 16:48:15 +02:00
Rémi Verschelde
c9b75431f3
Refactor GDScript/C# script templates logic to be editor-only
...
Not a full refactor as it still goes through ScriptLanguage so it's hacky,
but at least it can now compile without this.
2022-03-28 16:21:00 +02:00
Rémi Verschelde
143d13717b
Merge pull request #59553 from reduz/script-extension-support
2022-03-28 13:35:21 +02:00
Juan Linietsky
ed14ff5a08
Revert "Sort autocomplete/code completion options in a better way"
2022-03-28 13:31:32 +02:00
Rémi Verschelde
01f34495bf
Merge pull request #59621 from bruvzg/icu_external
2022-03-28 11:58:12 +02:00
Rémi Verschelde
795304e34f
Merge pull request #59612 from YeldhamDev/style_and_grace
2022-03-28 11:36:27 +02:00
Aleksey Smirnov
1a13de0f8d
Replace copies with constant refs
2022-03-28 12:34:05 +03:00
bruvzg
40b0634b34
Fix TextServer build with `builtin_icu=no`.
2022-03-28 11:06:49 +03:00
Rémi Verschelde
7fe5bece45
Merge pull request #58931 from EricEzaM/proposals/4189-better-code-completion
...
Sort autocomplete/code completion options in a better way
2022-03-28 08:56:27 +02:00
Rémi Verschelde
c422dc5feb
Merge pull request #59064 from Chaosus/gds_fix_narrowing_conv_warning
...
Prevent NARROWING_CONVERSION warning for `int(float)` function in GDScript
2022-03-28 08:55:52 +02:00
Michael Alexsander
42df9ed059
Make script templates follow the GDScript style guide
2022-03-28 01:32:12 -03:00
Fabio Alessandrelli
331f1662df
[Net] Drop is_connected_to_host for TCP and UDP.
...
The UDP method is now called `is_socket_connected` to limit confusion
with the actual host connection status which doesn't make sense in UDP.
The TCP method is completly dropped, use get_status instead.
The only one left is the WebSocketPeer one, which should be fine as is
for now.
2022-03-27 16:36:44 +02:00
Fabio Alessandrelli
0e52867668
[Net] Make StreamPeerTCP::_poll_connection explicit.
...
No longer hacked into `get_status` and renamed to `poll`.
The old `poll` (for *nix `poll`, win `select`) is now called `wait`.
2022-03-27 16:36:44 +02:00
reduz
360dea5348
Add GDExtension support to Script
...
* Ability to create script languages from GDExtension
* Some additions to gdnative_extension.h to make this happen
* Moved the GDExtension binder to core
This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x.
Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
2022-03-27 16:13:00 +02:00
Rémi Verschelde
6fce38d1da
Merge pull request #59489 from adamscott/add-gltf-dae-fbx-blend-shape-mask-array-format-enforcers
...
Add GLTF, DAE and FBX importers enforcement for blend shape mask array
2022-03-25 22:47:16 +01:00
Rémi Verschelde
7c37ab53be
Merge pull request #59503 from V-Sekai/basis-universal-update
2022-03-25 11:00:57 +01:00
Bastiaan Olij
c78876f977
Cleanup OpenXR on initialisation failure
2022-03-25 18:30:47 +11:00
K. S. Ernest (iFire) Lee
3529141b4b
Update basis universal to version 1.16.3.
...
Enable basis universal uastc internal storage instead of etc1s for better quality.
2022-03-24 22:41:23 -07:00
Fabio Alessandrelli
1ed6ad939b
Merge pull request #59255 from winterpixelgames/fix-js-websocket-close
...
Use 3001 instead of 1001 when destroying a Javascript websocket
2022-03-25 05:20:13 +01:00
Adam Scott
5e6d4baa48
Add GLTF, DAE and FBX importers enforcement for blend shape mask array
2022-03-24 17:15:23 -04:00
Kurt Lachmann
bbb07ff8cb
Use insertText from the internal autocompletion
...
* GDScriptLanguage::complete_code already adds parentheses to function calls, and does this a lot smarter than the language server right now.
* Instead of the previous naive approach we now reuse the same logic as the internal editor.
* For this to have any effect we also have to send the `insertText` field already during the completionRequest and not only during resolve.
2022-03-24 20:24:47 +01:00
Eric M
f9e1c094a2
Improve sorting of Code Completion options.
...
Done by ordering options by their location in the code - e.g. local, parent class, global, etc.
2022-03-24 22:24:14 +10:00
Rémi Verschelde
d7d528c15f
Merge pull request #59065 from fabriceci/script-template-condition-too-wide
2022-03-23 12:13:07 +01:00
fabriceci
dae97909bd
Restrict the condition when checking if a script is a template
2022-03-23 11:03:44 +01:00
Raul Santos
83e0e13f4a
Support static methods in C# bindings generator
2022-03-22 19:36:57 +01:00
bruvzg
803e1ae920
[Help] Add simulated slanted font support to the editor help.
2022-03-22 16:16:04 +02:00
Rémi Verschelde
2a116f601b
Merge pull request #59275 from bruvzg/ft_brotli
2022-03-22 12:47:00 +01:00
Yuri Roubinsky
c14043b166
Prevent NARROWING_CONVERSION warning for int(float) function in GDScript
2022-03-22 09:17:00 +03:00
Yuri Rubinsky
6cba2143de
Merge pull request #59056 from Chaosus/gds_fix_extends_crash
2022-03-22 08:27:03 +03:00
Yuri Rubinsky
7befa7234d
Merge pull request #58971 from Chaosus/gds_multiline_annotation
2022-03-22 08:25:37 +03:00
Rémi Verschelde
188fa0c846
Merge pull request #59194 from Chaosus/gds_export_flags_limit_error
...
Add an error emitting when the `@export_flags` arg count is exceeded
2022-03-21 21:21:49 +01:00
Rémi Verschelde
5e249d047f
Merge pull request #59141 from Chaosus/gds_fix_default_arg_check
...
Fix default value count checking for inherited function
2022-03-21 21:21:25 +01:00
Hendrik Brucker
2a55f10e8b
Add FastNoiseLite / general noise overhaul
...
- replace OpenSimplexNoise
Co-authored-by: Cory Petkovsek <tinmanjuggernaut@users.noreply.github.com>
2022-03-20 14:53:45 +01:00
Raul Santos
4bbfd20aa9
Ignore PhysicsServer3DExtension class in C#
...
PhysicsServer3DExtension inherits from PhysicsServer3D which is a
singleton class, since singleton classes are generated as static in C#
it would generate invalid C# so for now we'll be
ignoring PhysicsServer3DExtension.
2022-03-18 17:28:48 +01:00
Jason Knight
b659cfbd53
Use 3001 instead of 1001 when destroying a websocket.
2022-03-18 10:09:50 -06:00
Rémi Verschelde
ca47f25eb1
Merge pull request #59277 from bruvzg/hb401
2022-03-18 14:43:06 +01:00
bruvzg
e07a8f0aa6
Add brotli decoder and WOFF2 support.
2022-03-18 15:09:38 +02:00
bruvzg
94a365e94b
HarfBuzz: Update to version 4.0.1
2022-03-18 14:50:57 +02:00
bruvzg
f19cd44346
Unify TextServer built-in module and GDExtension code.
2022-03-17 08:15:29 +02:00
Yuri Roubinsky
8a6ab899ec
Add an error emitting when the `@export_flags` arg count is exceeded
2022-03-16 17:12:15 +03:00
bruvzg
98d0af7d5c
Implement GDExtension export plugin.
2022-03-16 11:16:19 +02:00
Rémi Verschelde
51bbcbdec2
Merge pull request #45263 from KoBeWi/ 😕
2022-03-15 13:18:27 +01:00
Yuri Roubinsky
5a99aa3b3a
Fix default value count checking for inherited function
2022-03-14 18:00:42 +03:00
Haoyu Qiu
1049e75b89
Fix determination of SVG canvas size
2022-03-14 00:00:05 +08:00
bruvzg
d9f8cadafb
Improve simulated bold fonts advance.
2022-03-13 15:07:53 +02:00
Rémi Verschelde
84b358c1d8
Merge pull request #58338 from aaronfranke/bools
...
Initialize bools in the headers in `editor/`
2022-03-12 22:00:38 +01:00
Aaron Franke
918b09cabc
Initialize bools in the headers in editor
2022-03-12 13:34:06 -06:00
Aaron Franke
89c4990274
Fix Slerp C# docs and add test cases for vectors in the same direction
2022-03-12 13:20:55 -06:00
Yuri Roubinsky
d009d96a92
Prevent crash due to empty error message on empty extends in GDScript
2022-03-12 09:46:51 +03:00
MythTitans
ec2984f7c7
Prevent non-smoothed face normals to participate to smoothed face normals
2022-03-11 20:23:13 +01:00
Haoyu Qiu
77f80aa4ee
Use `RTR()` for VisualScriptNode captions and texts
2022-03-11 23:36:16 +08:00
Rémi Verschelde
e56b69269f
Merge pull request #59013 from bruvzg/fake_bold_italics
2022-03-11 14:24:13 +01:00
bruvzg
b32e8d63d8
Add options to embolden and transform font outlines to simulate bold and italic typefaces.
2022-03-11 14:02:30 +02:00
Rémi Verschelde
768f9422bc
Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaks
...
`DirAccess *` needs to be deleted manually, and this is often forgotten
especially when doing early returns with `ERR_FAIL_COND`.
`DirAccessRef` is deleted automatically when it goes out of scope.
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-03-11 09:13:11 +01:00
Rémi Verschelde
259114e9e0
Merge pull request #59001 from BastiaanOlij/only_uninitialise_openxr_if_initialised
...
Only uninitialise OpenXR on destruct if it was initialized
2022-03-11 08:06:56 +01:00
MythTitans
8bcbaff411
Fix normals computation at the 'seam' of smoothed torus shape
2022-03-11 00:16:30 +01:00
Bastiaan Olij
d2ef2715ea
Only uninitialise OpenXR on destruct if it was initialised
2022-03-11 09:59:04 +11:00
Rémi Verschelde
1c51fd48db
Merge pull request #58781 from BastiaanOlij/openxr_signals_and_events
...
Adding signals and events to OpenXR interface
2022-03-10 18:10:26 +01:00
reduz
6f51eca1e3
Discern between virtual and abstract class bindings
...
* Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract".
* Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions.
* Converted a large amount of classes from "abstract" to "virtual" where it makes sense.
Most classes that make sense have been converted. Missing:
* Physics servers
* VideoStream
* Script* classes.
which will go in a separate PR due to the complexity involved.
2022-03-10 12:28:11 +01:00
Yuri Roubinsky
85488f12f3
Allow making multiline annotations in GDScript
2022-03-10 10:56:14 +03:00
Rémi Verschelde
277b0dddee
Merge pull request #58958 from hoontee/master
...
Revert #52647 (Don't update CSG Shape when not inside tree)
2022-03-10 08:34:26 +01:00
Bastiaan Olij
d11cb5fe98
Adding signals and events to OpenXR interface
...
Improving interaction profile logic
2022-03-10 17:14:56 +11:00
hoontee
9c312c486c
Revert #52647
2022-03-09 17:25:45 -06:00
Rémi Verschelde
3d7f155586
Remove unused Bullet module and thirdparty code
...
It has been disabled in `master` since one year (#45852 ) and our plan
is for Bullet, and possibly other thirdparty physics engines, to be
implemented via GDExtension so that they can be selected by the users
who need them.
2022-03-09 21:45:47 +01:00
Rémi Verschelde
33c907f9f5
Merge pull request #58929 from reduz/remove-variant-arg-macros
...
Remove VARIANT_ARG* macros
2022-03-09 20:48:45 +01:00
reduz
21637dfc25
Remove VARIANT_ARG* macros
...
* Very old macros from the time Godot was created.
* Limited arguments to 5 (then later changed to 8) in many places.
* They were replaced by C++11 Variadic Templates.
* Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard.
* Also added a dereference check for Variant*. Helped catch a couple of bugs.
2022-03-09 18:39:13 +01:00
hoontee
f1cc99c6e8
Add SNAME macro optimization missed during rebase
2022-03-09 11:23:46 -06:00
kobewi
39d429e497
Change some math macros to constexpr
...
Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
2022-03-09 16:24:32 +01:00
Rémi Verschelde
922348f4c0
Merge pull request #58925 from akien-mga/remove-unused-gdnative-code
2022-03-09 15:57:30 +01:00
Rémi Verschelde
56d055c1f9
Merge pull request #40814 from hoontee/master
2022-03-09 14:16:09 +01:00
Rémi Verschelde
9b05f29894
Remove unused GDNative code
...
This has been superseded by GDExtension so this code is no longer useful
nor usable.
There's still some GDNative-related stuff in platform export code which
needs to be adapted for GDExtension (e.g. to include GDExtension libraries
in exports).
2022-03-09 13:59:03 +01:00
Rémi Verschelde
70c5e7b0b8
Merge pull request #58920 from timothyqiu/autoload-cap
2022-03-09 09:20:34 +01:00
Haoyu Qiu
851ed8886c
Fix Autoload capitalization inconsistency
2022-03-09 15:03:03 +08:00
Yuri Roubinsky
4fee0e3b7d
Fix `VisualShaderNodeCustom` script template
2022-03-09 09:45:20 +03:00
hoontee
ce2b367afb
Properly handle CSGShape parent and visibility updates, plus some refactoring
2022-03-08 18:58:47 -06:00
Marcel Admiraal
507f72db8e
Rename Control's Rect properties to exclude rect_ part
2022-03-08 16:30:35 +00:00
K. S. Ernest (iFire) Lee
f7a809603c
ThorVG: Sync with upstream 0.8.0
2022-03-08 06:30:31 -08:00
Rémi Verschelde
8c3d8b12ed
Merge pull request #58853 from V-Sekai/default-arg-values
2022-03-07 10:40:42 +01:00
K. S. Ernest (iFire) Lee
2eaadb1b52
Restore building web platform by enclosing resolve_function_signature.
2022-03-07 00:35:11 -08:00
Rémi Verschelde
53cf5eff9a
Merge pull request #58847 from KoBeWi/editor_settings_mess
2022-03-07 08:38:15 +01:00
Rémi Verschelde
1177bd635f
Merge pull request #58208 from MythTitans/fix-sphere-and-cylinder-shapes-normals-seam
2022-03-07 08:37:29 +01:00
Rémi Verschelde
ffd64505c5
Merge pull request #58832 from reduz/uniform-set-cache
...
Add a UniformSet cache
2022-03-07 07:19:58 +01:00
Rémi Verschelde
47f1c4f900
Merge pull request #58827 from XPhyro/cs-deconstruct
...
Implement `Deconstruct` methods for C# vectors
2022-03-06 22:36:45 +01:00
kobewi
2057ea2883
Remove duplicate editor settings definitions
2022-03-06 22:05:49 +01:00
George Marques
1ebcb58e69
GDScript: Check if method signature matches the parent
...
To guarantee polymorphism, a method signature must be compatible with
the parent. This checks if:
1. Return type is the same.
2. The subclass method takes at least the same amount of parameters.
3. The matching parameters have the same type.
4. If the subclass takes more parameters, all of the extra ones have a
default value.
5. If the superclass has default values, so must have the subclass.
There's a few test cases to ensure this holds up.
2022-03-06 11:16:20 -03:00
reduz
b0ca03b0a2
Add a UniformSet cache
...
* Changed syntax usage for RD::Uniform to create faster with a single RID
* Converted render pass setup to use this in clustered renderer to test.
This is the first step into creating a proper uniform set cache system to simplify large parts of the codebase.
2022-03-06 13:03:33 +01:00
Berke Kocaoğlu
20d72e462b
Implement `Deconstruct` methods for C# vectors
...
See https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/deconstruct#user-defined-types
2022-03-06 11:16:30 +03:00
strank
7d48afa96d
Add test cases for accessing parent elements from child class
2022-03-04 12:41:20 -05:00
Rémi Verschelde
0453e7e115
Merge pull request #58752 from akien-mga/webrtc-fix-put_packet-error
2022-03-04 17:58:40 +01:00
Rémi Verschelde
79bbe57244
Merge pull request #56830 from strank/parent-signals
2022-03-04 17:29:49 +01:00
Rémi Verschelde
1769f80547
WebRTC: Fix potential nullptr dereference in error message
...
This was evidently a typo. Didn't get a crash but GCC 12 raised a
`-Warray-bounds` warning:
```
In file included from ./core/io/stream_peer.h:34,
from ./core/io/packet_peer.h:34,
from ./core/multiplayer/multiplayer_peer.h:34,
from modules/webrtc/webrtc_multiplayer_peer.h:34,
from modules/webrtc/webrtc_multiplayer_peer.cpp:31:
In member function 'T* Ref<T>::operator->() [with T = WebRTCMultiplayerPeer::ConnectedPeer]',
inlined from 'virtual Error WebRTCMultiplayerPeer::put_packet(const uint8_t*, int)' at modules/webrtc/webrtc_multiplayer_peer.cpp:376:4:
./core/object/ref_counted.h:101:24: error: array subscript 0 is outside array bounds of 'Ref<WebRTCMultiplayerPeer::ConnectedPeer> [0]' [-Werror=array-bounds]
101 | return reference;
| ^~~~~~~~~
```
2022-03-04 16:02:40 +01:00
Rémi Verschelde
bb8c4acdc9
Merge pull request #58185 from V-Sekai/explicit_variant_assignment_fix
2022-03-04 14:56:38 +01:00
Rémi Verschelde
e133adeb8c
Merge pull request #58201 from V-Sekai/debugger_locals
2022-03-04 14:50:56 +01:00
Rémi Verschelde
4bbd7417c4
Merge pull request #58320 from mphe/fix_object_typed_arrays
2022-03-04 14:49:06 +01:00
Rémi Verschelde
a4195a3ea8
Merge pull request #58250 from V-Sekai/typed_array_fix
2022-03-04 14:48:40 +01:00
Rémi Verschelde
d31aaed172
Merge pull request #58626 from groud/fix_gdscript_analyser_crash
2022-03-04 14:15:59 +01:00
Rémi Verschelde
0ff45dd3a7
Merge pull request #58673 from Calinou/smooth-trimesh-collision-always-setting
2022-03-04 12:25:36 +01:00
Rémi Verschelde
9b94a1dc4a
Merge pull request #58670 from KoBeWi/internal_debugger
2022-03-04 10:44:56 +01:00
Raul Santos
eaddb79ec6
Refactor `bbcode_to_xml` into multiple specific methods
...
The specific `_append_xml_*` methods implement the logic that generates
the proper XML documentation for the given BBCode tag and target and
appends it to the output.
2022-03-03 23:35:10 +01:00
Raul Santos
84615b4b53
Find inherited members in C# documentation generator
2022-03-03 19:53:06 +01:00
Raul Santos
42989befd6
Add theme_item support to C# documentation generator
2022-03-03 18:54:49 +01:00
Raul Santos
e601c9eb8f
Fix checking for `@GlobalScope` in C# documentation generator
2022-03-03 18:54:41 +01:00
Raul Santos
424817039a
Check for missing methods/members in C# documentation generator
...
- Outputs errors for missing members or methods when generating the C#
documentation.
- Hardcodes a special case for the `_init` method, in C# we'll reference
the constructor.
- Ignores properties with slashes (since they are not declared in C# and
can't be referenced in the documentation).
2022-03-03 18:53:15 +01:00
Raul Santos
47a7d85cc4
Fix references to global constants in C# documentation generator
...
Tries to find the referenced constants in the GlobalScope
if not found in the target class or if no class is specified.
2022-03-03 18:53:15 +01:00
Lyuma
35b964606e
glTF export for new TYPE_BLEND_SHAPE tracks
2022-03-03 05:28:00 -08:00
Max Hilbrunner
57838fc0ee
Merge pull request #58262 from Sauermann/fix-range-doc
...
Describe usage of float in range documentation
2022-03-03 13:12:29 +01:00
Hugo Locurcio
4219485a82
Always register the Smooth Trimesh Collision project setting
...
This ensures the project setting never disappears from the editor,
even if the current physics engine is GodotPhysics.
This also adds documentation for the Smooth Trimesh Collision
project setting.
2022-03-02 18:49:34 +01:00
kobewi
98dd04c38c
Fix debugger not opening built-in scripts
2022-03-02 17:57:56 +01:00
cdemirer
3afe50c2fa
Fix logic errors in match-statement Array & Dictionary Patterns
2022-03-02 19:05:18 +08:00
bruvzg
9b0fbfa06d
HarfBuzz: Update to version 4.0.0
2022-03-02 10:48:37 +02:00
kobewi
cd6bd04cba
Remove unimplemented set_clip() method
2022-03-02 00:44:30 +01:00
Gilles Roudière
7ae988ce5e
Fix a crash in GDScriptAnalyzer when a script class's file is not found
2022-02-28 12:20:00 +01:00
Bastiaan Olij
8f035b2ab4
Fix color issues with OpenXR
2022-02-28 13:02:03 +11:00
Bastiaan Olij
1f1b786a36
Use VK_NULL_HANDLE when initializing XrSwapchainImageVulkanKHR
2022-02-27 21:13:02 +11:00
Raul Santos
a95cc4eff3
Sort variables in VisualScriptEditor
...
Sorts the script variables in alphabetical order to display them
in VisualScriptEditor.
2022-02-24 21:18:02 +01:00
Rémi Verschelde
4dc8214831
Merge pull request #58496 from JFonS/fix_lm_crash
2022-02-24 13:29:51 +01:00
jfons
d0fd5fd3c7
Add sanity checks to lightmap unwrap texel size
2022-02-24 13:00:51 +01:00
Gilles Roudière
f045c97218
Fix llvm compilation by adding missing override
2022-02-23 18:07:02 +01:00
Rémi Verschelde
e3b70f3582
Merge pull request #58244 from V-Sekai/typed_fail_case_return
2022-02-23 14:12:14 +01:00
Rémi Verschelde
1f3916e0b6
Merge pull request #56394 from BastiaanOlij/OpenXR_Core4
2022-02-23 13:36:07 +01:00
Rémi Verschelde
2fd17df2ce
Merge pull request #58354 from timothyqiu/gridmap-export
2022-02-23 13:05:26 +01:00
Rémi Verschelde
95783f7bfc
Merge pull request #58415 from V-Sekai/cyclic_assignment_gdscript_fixes
2022-02-23 12:09:44 +01:00
Bastiaan Olij
a78a9fee71
Implementing OpenXR driver
2022-02-23 12:02:24 +01:00
Rémi Verschelde
fcf8c2006d
Merge pull request #58411 from cbscribe/rename_motion_velocity
2022-02-23 09:48:58 +01:00
Chris Bradfield
849d34ba8e
Rename motion_velocity to velocity
2022-02-22 23:31:33 -08:00
clayjohn
fe49244611
Use Filament specular models and parametrization
2022-02-22 19:39:41 -08:00
SaracenOne
b6aa4ed55d
Fixes cyclic detection from variables assigning themselves to themselves in autocomplete, and restricts initialization of variables from other variables which have not been declared above it in class body
2022-02-22 01:21:21 +00:00
Rémi Verschelde
d42250e2fb
Merge pull request #58275 from V-Sekai/attribute_parse_crash_fix
2022-02-21 12:17:14 +01:00
Haoyu Qiu
c798f98779
Fix GLTF exporter crash when using GridMap
2022-02-20 21:52:04 +08:00
Rémi Verschelde
279f105246
Merge pull request #58321 from akien-mga/vector3-forward-declares
2022-02-20 11:35:33 +01:00
megalobyte
4d275c473e
Don't process VisualScriptNodes
2022-02-19 14:33:27 -05:00
Rémi Verschelde
e031aa06ee
Core: Use forward declares for Vector3/Vector3i
...
Add add Vector3 operator in Vector3i.
2022-02-19 16:47:24 +01:00
Marvin Ewald
cea0630fef
Fix typed arrays for Object based types
...
Fixes https://github.com/godotengine/godot/issues/53771 .
2022-02-19 16:27:06 +01:00
SaracenOne
ae0026bc7b
Make 'is_attribute' false during parse error to prevent crash
2022-02-18 12:52:46 +00:00
Markus Sauermann
bac8e451c0
Describe usage of float in range documentation
2022-02-18 00:59:22 +01:00
SaracenOne
ab2a8bd1d8
Fix using typed arrays based on script classes
2022-02-17 17:34:53 +00:00
SaracenOne
62d87fbd8b
Return a correctly typed variant in case of a function error to prevent hard crashes
2022-02-17 15:45:19 +00:00
Rémi Verschelde
b890e5b8ad
Merge pull request #58189 from fazil47/gltf-export-default-material-fix
...
Default material is assigned to meshes without material for glTF export
2022-02-17 09:16:36 +01:00
Ellen Poe
76f667bf2a
Merge pull request #58130 from timothyqiu/ogg-seek-crash
...
Fix infinite recursion when seeking Ogg Vorbis file
2022-02-16 20:14:31 -08:00
MythTitans
509e03c821
Fix normals computation at the 'seam' of smoothed sphere and cylinder shapes
2022-02-16 22:23:28 +01:00
Rémi Verschelde
009254d87c
Merge pull request #58187 from jakobbouchard/notification-switch-chunk-c
...
Convert _notification methods to switch - Chunk C
2022-02-16 20:58:55 +01:00
SaracenOne
657b9b6596
Fix local variables not showing when breaking on final line
2022-02-16 18:12:38 +00:00
Jakob Bouchard
6553f5c242
Convert _notification methods to switch - Chunk C
2022-02-16 13:03:05 -05:00
Rémi Verschelde
5d5f80b529
Merge pull request #58190 from MisoMosiSpy/vs_icons
2022-02-16 17:18:15 +01:00
MisoMosiSpy
fa2026365d
Added icons for missing types in visual script’s icon list.
2022-02-16 20:31:18 +05:30
Fazil Babu
771170e7b0
Default material is assigned to meshes without material for glTF export
2022-02-16 20:19:19 +05:30
SaracenOne
d45c3cdd1d
Fix error when assigning to an explicitly annotated variant from an ambiguous source
2022-02-16 13:25:27 +00:00
Rémi Verschelde
b8b4580448
Style: Cleanup single-line blocks, semicolons, dead code
...
Remove currently unused implementation of TextureBasisU, could be re-added
later on if needed and ported.
2022-02-16 14:06:29 +01:00
Haoyu Qiu
1262d331c0
Fix VisualScript crash when using Set Index node
2022-02-16 15:27:41 +08:00
Haoyu Qiu
19a2ec3d04
Add GridMap.get_used_cells_by_item
2022-02-16 13:04:31 +08:00
Rémi Verschelde
11572c6e30
Editor: Cleanup some includes dependencies
...
Removes some unnecessary includes from `editor_node.h`, and instead add
those where they're used.
Removes unnecessary `editor_node.h` includes in various editor classes.
Renames `dynamicfont` to `dynamic_font` in a couple files.
Misc cleanup while jumping through that rabbit hole.
2022-02-15 14:54:15 +01:00
Rémi Verschelde
760a95e86a
Merge pull request #57877 from bruvzg/subpixel_gl_pos
2022-02-15 13:58:38 +01:00
Rémi Verschelde
78a767edb3
Merge pull request #35679 from Calinou/doc-add-xml-schema
2022-02-15 13:14:58 +01:00
Haoyu Qiu
b4ffaebb87
Fix infinite recursion when seeking Ogg Vorbis file
2022-02-15 15:11:05 +08:00
Hugo Locurcio
b68dd2e189
Add an XML schema for documentation
...
This makes it easier to spot syntax errors when editing the
class reference. The schema is referenced locally so validation
can still work offline.
Each class XML's schema conformance is also checked on GitHub Actions.
2022-02-15 00:03:31 +01:00
Rémi Verschelde
d02db6306e
Merge pull request #58105 from trollodel/nuke_p_editor_editor_plugin
2022-02-14 21:10:38 +01:00
trollodel
cd1d7294d8
Remove the EditorNode parameter from EditorPlugins create methods
...
Remove EditorNode usage from the Navigation editor plugin.
2022-02-14 18:21:42 +01:00
Haoyu Qiu
b5badd12c6
Fix crash and memory leak when importing OGG Vorbis
2022-02-15 00:25:02 +08:00
Rémi Verschelde
f810f76890
Merge pull request #57306 from trollodel/remove_editornode_param
2022-02-14 16:40:40 +01:00
trollodel
05b56f316d
Remove most EditorNode constructor parameters and fields
2022-02-14 14:16:24 +01:00
kleonc
5422d863e1
NavMap Fix polygons being treated like triangle strips instead of triangle fans
2022-02-13 19:26:17 +01:00
Rémi Verschelde
7224389468
Merge pull request #57954 from TokageItLab/refactor-cubic-interpolate
...
Implement `cubic_interpolate()` as MathFunc for refactoring
2022-02-13 10:34:13 +01:00
jmb462
e5657a4fbf
Fix renaming function dialog in VisualScript does not work correctly
2022-02-12 21:28:28 +01:00
bruvzg
29199579f7
Add sub-pixel glyph positioning support.
2022-02-12 19:55:52 +02:00
Hendrik Brucker
77fb65debf
Use EditorFileDialog instead of FileDialog in the project manager
2022-02-12 12:06:51 +01:00
Rémi Verschelde
d1dbe21c56
Merge pull request #57980 from akien-mga/vulkan-1.3.204
2022-02-12 10:21:27 +01:00
Silc 'Tokage' Renew
865da09871
Implement cubic_interpolate() as MathFunc for refactoring
2022-02-12 18:11:17 +09:00
Rémi Verschelde
7a7fabe4f6
Merge pull request #57641 from Geometror/compilation-time-improvements-1
2022-02-12 09:46:02 +01:00
Hendrik Brucker
b396fd4eef
Improve compilation speed (forward declarations/includes cleanup)
2022-02-12 02:46:22 +01:00
strank
dcf19f8914
Fix "Identifier not found" compiler error when accessing inherited signals or functions as callables.
2022-02-11 20:45:04 -05:00
Rémi Verschelde
18d6b75ba8
RendererRD: Remove binding specifier for push constants
...
This is unsupported and glslang made it raise an error in 11.7.0:
https://github.com/KhronosGroup/glslang/pull/2810
Co-authored-by: Clay John <claynjohn@gmail.com>
2022-02-11 18:42:32 +01:00
Fazil Babu
92f4c33492
CSG Meshes can be exported as glTF
2022-02-11 22:48:28 +05:30
Ignacio Roldán Etcheverry
f4478843ca
Merge pull request #57917 from raulsntos/csharp-signal-documentation
...
Support signals in C# generated documentation
2022-02-11 14:51:57 +01:00
Raul Santos
f380a8e0ec
Support signals in C# documentation
2022-02-10 16:02:31 +01:00
Rémi Verschelde
1bdb82c64e
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
Added `misc/scripts/codespell.sh` to make it easier to run it once in a
while and update the skip and ignore lists.
2022-02-10 12:30:19 +01:00
Rémi Verschelde
90162851a7
Core: Move generated `VERSION_HASH` to a `.cpp` file
...
This lets us have its definition in `core/version.h` and avoid
rebuilding a handful of files every time the commit hash changes.
2022-02-09 09:20:17 +01:00
Rémi Verschelde
ba1024f42d
Merge pull request #57822 from Calinou/ios-remove-armv7
2022-02-08 23:25:16 +01:00
Rémi Verschelde
25d4c14fef
Merge pull request #57627 from JFonS/occluder_improvements
2022-02-08 23:23:50 +01:00
Ignacio Roldán Etcheverry
f05f2dd80f
Merge pull request #57076 from IgorKordiukiewicz/fix-mono-string-capitalize
...
String.Capitalize() in C# now matches the behaviour of String::capitalize() in C++
2022-02-08 22:16:54 +01:00
Hugo Locurcio
74fc4410f4
Remove support for ARMv7 (32-bit) on iOS
...
All iOS devices since the iPhone 5S support ARMv8 (64-bit).
The last iOS version supported on ARMv7 devices is 10.x, which is
too old to run Godot 4.0 projects since the minimum supported
iOS version is 11.0.
2022-02-08 22:11:29 +01:00
Rémi Verschelde
4a2f22daf4
Merge pull request #57798 from akien-mga/scons-module-tests-simplify
2022-02-08 14:36:31 +01:00
Rémi Verschelde
3495288b03
SCons: Improve logic to generate `modules_tests.gen.h`
...
This removes the need for `AlwaysBuild` by ensuring that the proper
files are being tracked as `Depends`.
2022-02-08 13:01:35 +01:00
Rémi Verschelde
f9e496168f
Merge pull request #57786 from 0And/vectorslerp
2022-02-08 12:56:43 +01:00
Rémi Verschelde
a66e55069e
Merge pull request #57796 from akien-mga/revert-sname-theme-setters
2022-02-08 11:13:24 +01:00
Rémi Verschelde
6eeeb9a63c
Re-add missing `SNAME` macros in `get_theme_*` calls
...
They were removed in the previous commit reverting the addition of `SNAME`
to `add_theme_*` and theme setter methods, which is not wanted.
2022-02-08 10:31:56 +01:00
Rémi Verschelde
fc076ece3d
Revert "Add missing SNAME macro optimization to all theme methods call"
...
This reverts commit a988fad9a0
.
As discussed in #57725 and clarified in #57788 , `SNAME` is not meant to be used
everywhere but only in critical code paths. For theme methods specifically, it
was by design that only getters use `SNAME` and not setters.
2022-02-08 10:17:25 +01:00
Rémi Verschelde
317cd0b19a
Refactor some object type checking code with `cast_to`
...
Less stringly typed logic, and less String allocations and comparisons.
2022-02-08 10:08:34 +01:00
Andrew Jacob
8675ff0a74
Allow C# Vector2/3 slerp values to have any length
2022-02-07 22:58:43 -07:00
Rémi Verschelde
d35269ab21
Merge pull request #57764 from timothyqiu/octant-delete
2022-02-07 18:28:27 +01:00
Rémi Verschelde
05bad19a9a
Merge pull request #57752 from Calinou/doc-csg-nodes-performance
2022-02-07 18:27:58 +01:00
Haoyu Qiu
5d4a141c97
Fix GridMap memory leak
2022-02-08 00:27:01 +08:00
Hugo Locurcio
5268786ac0
Document performance limitations with CSG nodes, link to tutorial
2022-02-07 15:55:02 +01:00
Fabio Alessandrelli
086256431a
[Net] Add type check to GDScriptRPCCallable.
...
It will print an error when using an RPC defined on an object which does
not extend Node.
2022-02-07 13:39:45 +01:00
Fabio Alessandrelli
994638da4f
[Net] Implement GDScript custom RPC callable.
2022-02-07 13:39:10 +01:00
Rémi Verschelde
1694626e03
Merge pull request #57305 from bruvzg/macos_cleanup
2022-02-07 13:36:09 +01:00
Rémi Verschelde
6a56314eab
Merge pull request #57748 from fabriceci/rename-script-template-variable
2022-02-07 13:22:23 +01:00
jfons
dd970482c5
Improvements and fixes to occluders
...
Improvements:
* Occluder3D is now an abstract type inherited by: ArrayOccluder3D, QuadOccluder3D, BoxOccluder3D, SphereOccluder3D and PolygonOccluder3D. ArrayOccluder3D serves the same purpose as the old Occluder3D (triangle mesh occluder) while the rest are primitives that can be used to manually place simple occluders.
* Occluder baking can now apply simplification. The "bake_simplification_distance" property can be used to set a world-space distance as the desired maximum error, set to 0.1 by default.
* Occluders can now be generated on import. Using the "occ" and "occonly" keywords (similar to "col" and "colonly" for colliders) or by enabling on MeshInstance3Ds in the scene's import window.
Fixes:
* Fixed saving of occluder files after bake.
* Fixed a small error where occluders didn't correctly update in the rendering server.
Bonus content:
* Generalized "CollisionPolygon3DEditor" so it can also be used to edit Resources. Renamed it to "Polygon3DEditor" since it was already being used by other things, not just colliders.
* Fixed a small bug in "EditorPropertyArray" where a call to "remove" was left after the "remove_at" rename.
2022-02-07 13:04:51 +01:00
Rémi Verschelde
bfb75d107c
Merge pull request #57741 from Chaosus/vs_fixes
2022-02-07 12:50:44 +01:00
fabriceci
e81ccaf270
rename jump force to jump velocity
2022-02-07 11:46:30 +01:00
Rémi Verschelde
b024602660
Merge pull request #57725 from jmb462/missing-sname-theme-setters
2022-02-07 11:46:25 +01:00
Yuri Roubinsky
a6e280c5de
Add some more fixes to visual shader
2022-02-07 11:28:42 +03:00
Raul Santos
303f0c8626
Attach mono thread before getting nativeName field
...
In order to access the `nativeName` constant field from a C# class, the
mono scope thread must be attached or the mono domain will be null.
2022-02-07 03:43:34 +01:00
jmb462
a988fad9a0
Add missing SNAME macro optimization to all theme methods call
2022-02-06 23:06:11 +01:00
Rémi Verschelde
eb4b4a317b
Merge pull request #57649 from Faless/net/4.x_ws_queue_hostres
...
[Net] Non-blocking WebSocket hostname resolution.
2022-02-05 18:23:11 +01:00
Jordan Schidlowsky
1ec96bc206
[Net] Non-blocking WebSocket hostname resolution.
...
Hostname is now resolved during poll in WebSocketClient (wslay) to avoid
blocking during connect.
An attempt is still made to find the hostname in the resolver cache.
2022-02-05 02:22:43 +01:00
K. S. Ernest (iFire) Lee
419b342a9a
Faster CVTT by reducing quality.
...
Make BC6 and BC7 CVTT faster while still having better quality than DXT5.
2022-02-04 15:15:26 -08:00
Rémi Verschelde
77d08b68b0
Merge pull request #49445 from Calinou/gdscript-highlight-namespace-reserved-keyword
2022-02-04 19:03:28 +01:00
Rémi Verschelde
2885befbe6
Merge pull request #55950 from Faless/mp/4.x_replication_nodes
2022-02-04 19:03:10 +01:00
Rémi Verschelde
61c57491bc
Merge pull request #57625 from akien-mga/core-split-vector2i-own-header
2022-02-04 19:00:39 +01:00
Hugo Locurcio
de45534fed
Highlight "namespace" as a GDScript keyword in the syntax highlighter
...
Like "trait" and "yield", "namespace" is currently not implemented
but is still reserved for future use.
2022-02-04 17:46:13 +01:00
Rémi Verschelde
e223bad86d
Core: Move Vector2i to its own `vector2i.h` header
...
Also reduce interdependencies and clean up a bit.
2022-02-04 16:32:21 +01:00
Rémi Verschelde
8495be9cec
Merge pull request #57621 from akien-mga/core-split-rect2i-own-header
2022-02-04 16:05:30 +01:00
Ignacio Roldán Etcheverry
721c32ee2b
Merge pull request #57618 from Densorius/master
...
Fixed opening new instances of VS 2022 while a instance is already open
2022-02-04 15:05:51 +01:00
Fabio Alessandrelli
d219547c96
[Net] New replication interface, spawner and synchronizer nodes.
...
Initial implementation of the MultiplayerReplicationInterface and its
default implementation (SceneReplicationInterface).
New MultiplayerSpawner node helps dealing with instantiation of scenes
on remote peers (e.g. clients).
It supports both custom spawns via a `_spawn_custom` virtual function,
and optional auto-spawn of known scenes via a TypedArray<PackedScenes>
property.
New MultiplayerSynchornizer helps synchronizing states between the local
and remote peers, supports both sync and spawn properties and is
configured via a `SceneReplicationConfig` resource.
It can also sync via path (i.e. without being spawned by a
MultiplayerSpawner if both peers has it in tree, but will not send the
spawn state in that case, only the sync one.
2022-02-04 14:56:30 +01:00
Rémi Verschelde
5f56d385b0
Core: Move Rect2i to its own `rect2i.h` header
...
And take the opportunity to improve interdependencies a bit with forward
declares where possible.
2022-02-04 14:17:30 +01:00
Rémi Verschelde
89eb6d372d
Merge pull request #57591 from vnen/gdscript-enum-fixes
2022-02-04 13:49:15 +01:00
Densorius
93e2d0446f
Fixed opening new instances of VS 2022 while a instance is already open
2022-02-04 10:40:43 +01:00
bruvzg
244db37508
Cleanup and move char functions to the `char_utils.h` header.
2022-02-04 11:35:01 +02:00
Densorius
9ea0508d35
Add Visual Studio 2022 support with fallback to 2019
2022-02-04 00:34:02 +01:00
Rémi Verschelde
f8f19b313d
Merge pull request #57562 from AnilBK/string-add-contains
...
String: Add contains().
2022-02-03 22:21:24 +01:00
Anilforextra
adbe948bda
String: Add contains().
2022-02-04 01:28:02 +05:45
Rémi Verschelde
c47f059776
Merge pull request #57467 from webbuf/modules-initialize
...
Initialized Member Variables in /modules
2022-02-03 20:41:29 +01:00
George Marques
ceafdf347e
GDScript: Treat enum values as int and enum types as dictionary
...
Since enums resolve to a dictionary at runtime, calling dictionary
methods on an enum type is a valid use case. This ensures this is true
by adding test cases. This also makes enum values be treated as ints
when used in operations.
2022-02-03 13:32:34 -03:00
George Marques
b013c0d544
GDScript: Allow tests to run on release builds
...
- Fix compilation issues by disabling warnings on release builds. This
also strips warnings from expected result before the comparison to
avoid false mismatches.
- Add a `#debug-only` flag to tests. Must be the first line of the test
script. Those won't run with release builds. Can be used for test
cases that rely on checks only available on debug builds.
2022-02-03 13:32:33 -03:00
George Marques
ad6e2e82a9
GDScript: Consolidate behavior for assigning enum types
...
This makes sure that assigning values to enum-typed variables are
consistent. Same enum is always valid, different enum is always
invalid (without casting) and assigning `int` creates a warning
if there is no casting.
There are new test cases to ensure this behavior doesn't break in
the future.
2022-02-03 13:32:16 -03:00
zwebb
466661c78f
initialized member variables in header
2022-02-03 11:14:42 -05:00
Rémi Verschelde
45d5aa5d47
Merge pull request #56365 from aaronfranke/default-shape-size
2022-02-03 16:59:07 +01:00
bruvzg
5676b3c022
HarfBuzz: Update to version 3.3.1
2022-02-02 22:29:31 +02:00
bruvzg
215bede6ff
[TextServer] Add function to change font, font size, and OpenType features without invalidating line break points, justification points, or recreating shaped text buffer.
2022-02-02 11:20:44 +02:00
Lisandro Lorea
69e30d91ee
Fix "texture not initialized" error preventing video from playing
...
Closes #57153
2022-02-01 23:55:17 -03:00
bruvzg
33d6d4bdf7
[macOS] Enable Objective-C ARC
2022-02-01 15:58:30 +02:00
Rémi Verschelde
d4e21b7d62
Merge pull request #57358 from akien-mga/signal-bindings-object
2022-02-01 14:24:47 +01:00
Aaron Franke
8cfd264148
Improve the default size for 3D shapes (Box, Capsule, and Cylinder)
2022-02-01 06:43:16 -06:00
trollodel
1d6ac42b2a
Allow setting the PropertyInfo class_name from GDScript
2022-02-01 11:57:14 +01:00
Pawel Lampe
a30dd094d3
Fix transforms involved into navmesh baking
...
Within the context of parsing navigation geometry, this commit:
- added missing transform of `MultiMeshInstance`
- changed all transforms to global ones so that they don't need to be
calculated by hand
2022-01-31 23:07:45 +01:00
bruvzg
8e79c5fb8d
Add support for the escaped UTF-16 and UTF-32 Unicode characters in the scripts and expressions.
2022-01-30 20:16:04 +02:00
Rémi Verschelde
2f57a11ed9
Merge pull request #55785 from nathanfranke/clang-tidy
2022-01-29 13:46:38 +01:00
Nathan Franke
8a0a3accee
simplify formatting scripts, add a clang-tidy script, and run clang-tidy
2022-01-29 04:41:03 -06:00
Marcel Admiraal
51834a4589
Be more verbose about why msbuild tools could not be found
2022-01-29 07:16:34 +00:00
Yuri Sizov
49eddd22e0
Update icons and color conversion rules to simplify the palette
2022-01-29 01:03:39 +03:00
Rémi Verschelde
7c3003fcbe
Improve some signal bindings to use specific `Object` subtypes
2022-01-28 15:35:40 +01:00
Rémi Verschelde
e6caaf4c80
Merge pull request #57205 from TechnoPorg/variant-template-cast
...
Allow method binds to take Object subclasses as arguments
2022-01-27 23:46:37 +01:00
Rémi Verschelde
b6d3f44095
Merge pull request #57310 from raulsntos/rename-subsequence
...
Rename C# `IsSubsequenceOfI` to `IsSubsequenceOfN`
2022-01-27 16:54:41 +01:00
Rémi Verschelde
899cd34426
Merge pull request #57281 from Rubonnek/rename-subsequence
2022-01-27 11:03:13 +01:00
Raul Santos
6ecb92a1fc
Rename C# `IsSubsequenceOfI` to `IsSubsequenceOfN`
2022-01-27 03:04:16 +01:00
Wilson E. Alvarez
3eb5e0ac50
Rename String::is_subsequence_ofi to String::is_subsequence_ofn
2022-01-26 18:03:56 -05:00
Bastiaan Olij
98e5cd24db
Improve XRInterface hooks into rendering
2022-01-26 13:55:44 +11:00
cdemirer
28ac4d8b7d
Fix crash with non-constant keys in match statement Dictionary pattern
2022-01-26 04:10:07 +08:00
TechnoPorg
051ef479c9
Allow method binds to take Object subclasses as arguments
...
This commit adds a condition to VariantCaster that casts Variants of type OBJECT to any type T, if T is derived from Object.
This change enables a fair bit of code cleanup. First, the Variant implicit cast operators for Node and Control can be removed, which allows for some invalid includes to be removed. Second, helper methods in Tree whose sole purpose was to cast arguments to TreeItem * are no longer necessary.
A few small changes also had to be made to other files, due to the changes cascading down all the includes.
2022-01-25 09:03:36 -07:00
Paweł Fertyk
12d0ff1a4d
Issue 57130 Fix GLTFDocument.generate_scene if state is null
2022-01-25 00:48:12 +01:00
Rémi Verschelde
bd4d57ede2
BaseButton: Rename `pressed` property to `button_pressed`
...
This fixes a conflict with the `pressed` signal.
The new name is temporary and only intended to solve the conflict for upcoming
alpha builds. Discussions are still ongoing regarding the BaseButton API and
how to rename and refactor more of its properties, signals and methods to have
a clearer API in 4.0.
2022-01-23 22:15:09 +01:00
Lyuma
e8da21dc6b
etcpak: Workaround multiple-of-4 requirement for 3D texture mipmaps.
2022-01-23 11:32:05 -08:00
kobewi
98692d68c3
Minor tweaks and fixes to panning
2022-01-23 13:49:53 +01:00
Igor Kordiukiewicz
6c3b6664b5
String.Capitalize() in C# now matches the behaviour of String::capitalize() in C++
2022-01-23 13:24:04 +01:00
Rémi Verschelde
ce42ab238a
Merge pull request #56931 from lyuma/etcpak_po2
...
Enforce mult-of-4 requirements on etcpak input.
2022-01-23 09:31:35 +01:00
K. S. Ernest (iFire) Lee
b69b526b7c
GDScript cache crashfix.
2022-01-22 17:42:54 -08:00
Lyuma
b1b20f5f91
Pad etcpak input to 4x4 blocks. Fixes #49981
2022-01-22 17:20:17 -08:00
Rémi Verschelde
e363f404a5
Merge pull request #57000 from KoBeWi/UNLIMITED_PANNING
2022-01-23 00:47:52 +01:00
Rémi Verschelde
00f8b56f1f
Merge pull request #57044 from Calinou/doc-csgpolygon3d-points
2022-01-23 00:30:03 +01:00
Rémi Verschelde
e1706be25d
Merge pull request #57052 from KoBeWi/nosort
2022-01-23 00:27:01 +01:00
Rémi Verschelde
b5f524d4c0
Merge pull request #55433 from V-Sekai/prev_operand_nullptr_check
...
Check for nullptr expression in parse_precedence function
2022-01-22 20:31:45 +01:00
Rémi Verschelde
182a36db47
Merge pull request #55214 from Scony/fix-gdscript-crash-2
...
Fix GDScript parser crash on 'dollar mixed with assignment' expression
2022-01-22 20:30:54 +01:00
kobewi
f056cb8ebc
Don't sort printed Dictionary
2022-01-22 13:45:02 +01:00
Hugo Locurcio
69617a893e
Improve CSGPolygon3D documentation
...
- Describe why polygon triangulation usually fails in the error message.
2022-01-21 20:00:34 +01:00
kobewi
74bfe88267
Add ViewPanner to 2D editor
2022-01-21 18:35:06 +01:00
Rémi Verschelde
20dfa0c60b
Merge pull request #56252 from Gallilus/Update-visual-script-property-selector
2022-01-21 10:35:19 +01:00
Rémi Verschelde
cfb986c631
Merge pull request #51452 from omar-polo/fix-macros
2022-01-20 22:50:39 +01:00
Rémi Verschelde
e6170aae39
Merge pull request #55066 from trollodel/less_singletons_in_editornode
2022-01-20 22:29:17 +01:00
Rémi Verschelde
d681d99e12
Merge pull request #52134 from RandomShaper/fix_naming
2022-01-20 22:01:37 +01:00
Omar Polo
bd448e5535
Rename or refactor macros to avoid leading underscores
...
These are not used consistently and some can conflict with
system-specific defines. While here, also delete some unused macros.
2022-01-20 20:29:15 +01:00
trollodel
aa1102fc53
Store panels and docks singletons in their own classes
2022-01-20 20:13:26 +01:00
Pedro J. Estébanez
7b0ed2aa5e
Rename Variant::is_ref() to is_ref_counted()
2022-01-20 18:46:25 +01:00
Rémi Verschelde
65c3f2c049
Merge pull request #56855 from rafallus/gridmap_bake_staticbody
2022-01-20 12:10:34 +01:00
Rémi Verschelde
7057d26343
Merge pull request #56936 from BastiaanOlij/add_tracking_confidence
2022-01-20 12:09:06 +01:00
Bastiaan Olij
173105596e
Adding a tracking confidence state to XRPose
2022-01-20 10:35:50 +11:00
Paulb23
f43f68f605
Convert TextEdit callbacks to Callable
2022-01-19 17:26:22 +00:00
Rémi Verschelde
bc5ba38ff5
Merge pull request #56619 from timothyqiu/left-right-palette
2022-01-18 16:38:09 +01:00
Rémi Verschelde
ce2b5bdfa8
Merge pull request #52969 from bruvzg/locale_detection
2022-01-18 15:43:04 +01:00
bruvzg
40c56ed410
Improve locale detection.
...
Use separate language, script and country lists.
Add locale selection dialog and property hint.
2022-01-18 14:30:00 +02:00
Rémi Verschelde
8898d6dadc
Dictionary: Serialize empty dict as `{}` instead of `{\n}`
...
Also make sure to always convert multiline dictionaries to a single line for
its EditorHelp representation, as multiline values break formatting.
2022-01-18 11:31:21 +01:00
Rémi Verschelde
846c14eee9
Merge pull request #56739 from strank/master
...
GDScript: Fix parsing default parameter values from function calls
2022-01-17 21:38:01 +01:00
David Cambré
3a82f66974
Improve Visual Script editor to suggest the proper visual script nodes.
2022-01-17 20:22:22 +01:00
Rémi Verschelde
4cfade6212
Merge pull request #55995 from Xwdit/enum_fix
...
Fix enum int comparison
2022-01-17 20:20:16 +01:00
Rémi Verschelde
91909ef801
Merge pull request #55625 from cdemirer/fix-type-guessing-and-gdscript-parser-printing
...
Fix `--test gdscript-parser` crash
2022-01-17 20:17:02 +01:00
Rémi Verschelde
12ab19fa26
Merge pull request #55616 from cdemirer/master
...
Fix nested ternary-if codegen
2022-01-17 20:16:26 +01:00
bruvzg
e02a097280
[TextServer] Implement locale and context sensitive case conversion functions.
2022-01-17 14:23:36 +02:00
rafallus
cc46abd73d
Consider gridmap collisions in navigation bake
2022-01-16 18:56:10 -06:00
Yuri Roubinsky
02e6745271
Merge pull request #56832 from Chaosus/fix_theming
2022-01-16 16:02:22 +03:00
Yuri Roubinsky
5003d4351e
Fix theming update in several editor classes
2022-01-16 14:49:03 +03:00
Ignacio Roldán Etcheverry
e527687e1e
Merge pull request #55679 from raulsntos/script_reload_fix
...
C# scripts reload in editor fixed
2022-01-16 11:56:39 +01:00
Rémi Verschelde
a27b85378b
Merge pull request #56309 from Calinou/remove-pvrtc-support
2022-01-16 11:15:34 +01:00
Paulb23
fffeecfd68
Improvments for SyntaxHighlighters
...
- Fix immedate Funcion in lamba highlight
- Highlight signals as one colour
- Highlight node paths as one colour
- Highlight escape chars in strings
2022-01-15 15:39:55 +00:00
Haoyu Qiu
95050ce042
Fix crash when exiting the editor
2022-01-15 11:22:18 +08:00
Hugo Locurcio
40be15920f
Remove support for PVRTC texture encoding and decoding
...
On the only platform where PVRTC is supported (iOS),
ETC2 generally supersedes PVRTC in every possible way. The increased
memory usage is not really a problem thanks to modern iOS' devices
processing power being higher than its Android counterparts.
2022-01-14 21:08:22 +01:00
Rémi Verschelde
3efa6644c4
Merge pull request #55541 from KoBeWi/outcognito_scripts
2022-01-14 21:04:13 +01:00
Rémi Verschelde
afaf0c98f8
Merge pull request #56762 from bruvzg/mac_fix_sc
2022-01-14 20:57:57 +01:00
K. S. Ernest (iFire) Lee
8d02759c72
Use ThorVG instead of NanoSVG for importing SVGs
...
ThorVG is a platform-independent portable library for drawing vector-based
scene and animation.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-01-14 15:49:39 +01:00
luz paz
858bcd5058
Fix various typos
...
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inh,inout,leapyear,lod,nd,numer,ois,ony,paket,ro,seeked,sinc,switchs,te,uint,varn,vew`
2022-01-13 23:20:01 -05:00
strank
960a26f6c0
GDScript: Fix parsing default parameter values from function calls
2022-01-13 19:28:39 -05:00
bruvzg
fff3c38af9
[macOS] Fix self-contained mode, by looking for `._sc_` and writing data to the bundle directory instead of executable directory.
2022-01-13 21:29:22 +02:00
Ignacio Roldán Etcheverry
2dee116ba7
Merge pull request #56735 from raulsntos/fix-56733
...
Fix marshaling values of generic Godot Dictionary
2022-01-13 17:48:22 +01:00
Rémi Verschelde
f0382530a7
Merge pull request #56268 from KoBeWi/ 🚗 complete_setters
2022-01-13 12:40:48 +01:00
kobewi
f524ddebd5
Make script type distinguishable by icon
2022-01-13 12:29:05 +01:00
Rémi Verschelde
35fff9a55e
Merge pull request #55124 from akien-mga/freetype-2.11.0
2022-01-13 10:50:44 +01:00
Rémi Verschelde
f615926d3c
freetype: Update to upstream version 2.11.1
2022-01-13 08:40:18 +01:00
bruvzg
baec983d8a
[TextServer] Improvements for line breaking, "Fill" alignment, overrun, and interaction between these modes.
...
Fix "Fill" alignment processing wrong side of the text if overrun trim was applied.
Improve "Fill" alignment to avoid adding excessive subsequent spaces or elongations.
Add font detection to the overrun, to correctly add ellipsis (was using last glyph font, which doesn't necessary have dot character).
Improve line breaking to avoid adding excessive subsequent soft break points for languages without word separator.
Port missing overrun/justification code to the Fallback text server.
Fix inferred text direction detection by controls.
Add tests for "Fill" alignment and line breaking glyph flags.
2022-01-13 08:53:28 +02:00
Raul Santos
e4c40efeab
Fix marshaling values of generic Godot Dictionary
2022-01-12 23:26:51 +01:00
Rémi Verschelde
adc66be7be
Merge pull request #56722 from akien-mga/glslang-support-system-library
2022-01-12 16:04:59 +01:00
Rémi Verschelde
42d3993446
Merge pull request #56692 from JFonS/fix_gizmo_secondary_handles
2022-01-12 15:53:06 +01:00
Rémi Verschelde
585231a172
Merge pull request #56492 from akien-mga/remove-author-docstrings
2022-01-12 15:24:17 +01:00
Rémi Verschelde
8c76ad188b
glslang: Fix support for building against public/system library
...
Fix include paths to support both vendored and system-installed glslang.
Remove usage of the private `StandAlone` bits.
Requires us to vendor a copy of `DefaultTBuiltInResource` (or provide our own
customized one) as glslang doesn't provide it in its public API.
Also removes unused C interface as it's not well encapsulated and depends on
`StandAlone`.
Fixes #56307 .
2022-01-12 14:36:02 +01:00
jfons
5ebea2d120
Fix secondary handles in editor gizmos
...
Primary and secondary handles are no longer differentiated by their ids, so a bool was added to tell them apart in all the handle-related methods.
Includes a minor fix in CollisionPolygon3DEditor, unrelated to editor gizmos.
2022-01-12 14:21:20 +01:00
Rémi Verschelde
ac9f303e6d
Merge pull request #56646 from Chaosus/vst_context_menu
2022-01-12 11:39:06 +01:00
Rémi Verschelde
b5495783b2
Merge pull request #53185 from KoBeWi/viewing_pan
2022-01-12 11:36:41 +01:00
Rémi Verschelde
e664d195cb
Merge pull request #56693 from timothyqiu/vs-i18n
...
i18n: Make VisualScript node caption & text translatable
2022-01-12 08:05:17 +01:00
Rémi Verschelde
a074ceefcd
Merge pull request #56130 from Faless/mbedtls/2.28.0
2022-01-11 15:03:28 +01:00
Rémi Verschelde
d40d86b959
Merge pull request #56667 from Ice-Cube69/fix_incorrect_property_types
2022-01-11 14:34:18 +01:00
Haoyu Qiu
9b373642a5
i18n: Make VisualScript node caption & text translatable
2022-01-11 21:18:15 +08:00
kobewi
ba7ed05792
Unify panning in sub-editors and make it configurable
2022-01-11 13:57:19 +01:00
Arnav Vijaywargiya
0c46f73b5e
Fixed incorrect property types
2022-01-11 17:17:11 +05:30
SaracenOne
64d8b3aef2
Assign member type when parsing setters to prevent
...
'Compiler bug: unresolved assign' errors
2022-01-11 11:23:17 +00:00
Rémi Verschelde
b3513cffc5
Merge pull request #56326 from NNesh/fix/unknown_default_value_callable
...
Extended the _make_arguments_hint function to get default values for function arguments in hint
2022-01-10 21:29:13 +01:00
NNesh
374baff747
Fixed <unknown> text for callable default value for a function arguments hint
...
Format switch
Added a case for constant subscripts
Fixed default value hinting for the enum type
Removed is_null checking for value
Added a case for dictionary
2022-01-10 23:22:35 +05:00
Rémi Verschelde
49482966ec
Merge pull request #55715 from nathanfranke/enum-ordered
2022-01-10 17:19:52 +01:00
Rémi Verschelde
1989120d3f
Merge pull request #56194 from cdemirer/fix-operation-result-type-inference
2022-01-10 17:18:32 +01:00
Rémi Verschelde
4acc819f9b
Merge pull request #56232 from V-Sekai/invalid_explicit_variant_assign_fix
2022-01-10 17:12:56 +01:00
Rémi Verschelde
cc7f634066
Merge pull request #56260 from cdemirer/fix-type-mutation-upon-assignment-with-operation
2022-01-10 17:12:34 +01:00
Rémi Verschelde
c8b4fe3b8d
Merge pull request #56287 from cdemirer/fix-member-property-only-getter-cant-be-set
2022-01-10 17:12:06 +01:00
Rémi Verschelde
1fd5954962
Merge pull request #56288 from cdemirer/fix-member-property-getter-dont-update-subscript-chain-root
2022-01-10 17:10:57 +01:00
Rémi Verschelde
8f8c3f4b4c
Merge pull request #56342 from NNesh/fix/class-completion
2022-01-10 17:07:08 +01:00
Rémi Verschelde
b3d208385f
Merge pull request #56409 from cdemirer/fix-unexpected-copying-when-parameter-is-typed
2022-01-10 17:03:47 +01:00
Rémi Verschelde
eea510fc35
Merge pull request #56651 from gerhean/Fix-leak-when-function-returning-parent-class-type
2022-01-10 16:59:36 +01:00
Rémi Verschelde
7faf02383c
Merge pull request #55225 from bruvzg/fix_ligature_cursor_and_ot_features
2022-01-10 13:32:54 +01:00
Rémi Verschelde
cf25090cc8
Merge pull request #56662 from timothyqiu/fbx-fixes
2022-01-10 13:01:30 +01:00
Rémi Verschelde
b6aedc160d
Merge pull request #56663 from bruvzg/fix_tab_inf_loop
2022-01-10 12:33:44 +01:00
Rémi Verschelde
0464db3da8
Merge pull request #56602 from V-Sekai/csg_selection
2022-01-10 12:31:59 +01:00
Haoyu Qiu
af67e4c291
Fix crash on importing FBX file
2022-01-10 18:24:31 +08:00
bruvzg
af6758e008
Fix freezes when tab is zero or negative width.
2022-01-10 12:19:29 +02:00
bruvzg
8c973f21ee
Fix glyph index for bitmap fonts.
...
Fix TextEdit glyph position rounding.
2022-01-10 08:00:27 +02:00
Ger Hean
609964848d
Fix leak when function returning self type
...
Leak is caused by cyclic reference
2022-01-10 02:14:48 +08:00
bruvzg
c89c515ccf
[TextServer] Improve ligature cursor handling.
...
Fix mid-grapheme hit test.
Fix OpenType features property handling, add default features override option.
Enable mid-grapheme cursor by default.
2022-01-09 19:03:48 +02:00
Yuri Roubinsky
e9694a8971
Add context menu to visual script editor
2022-01-09 19:19:39 +03:00
Rémi Verschelde
32abe36cce
Merge pull request #56617 from AnilBK/use_fill
...
Use fill() to fill an entire image instead of setting pixels individually.
2022-01-08 23:38:06 +01:00
K. S. Ernest (iFire) Lee
b468104842
Skip Draco-compressed glTF 3d format files.
2022-01-08 10:14:46 -08:00
Haoyu Qiu
8fc73539e9
Allow showing both left and right side panels
2022-01-08 20:31:22 +08:00
Anilforextra
c9f5d88f3a
Use fill() to fill an entire image instead of setting pixels individually.
2022-01-08 17:43:15 +05:45
NNesh
1a1ee43e3e
Fixed completion showing for class members
2022-01-08 01:49:18 +05:00
SaracenOne
7f16bed947
Fix selection of CSG objects
2022-01-07 19:57:02 +00:00
kobewi
9e095bb68b
Fix some more wrong node names
2022-01-07 00:27:20 +01:00
Rémi Verschelde
393a44b275
Merge pull request #55213 from Scony/fix-gdscript-crash
2022-01-06 20:54:03 +01:00
bruvzg
c69e0d16bc
Fix multiple missing UTF-8 decoding.
2022-01-06 14:35:22 +02:00
JFonS
1f0dc02649
Merge pull request #56006 from KoBeWi/6yearslater
...
Add physics material to GridMap
2022-01-06 13:28:42 +01:00
Yuri Roubinsky
21cfcaa129
Add a GDScript template for `VisualShaderNodeCustom`
2022-01-06 12:06:33 +03:00
Rémi Verschelde
3662105f8b
Merge pull request #56479 from V-Sekai/import-options
2022-01-05 20:44:42 +01:00
Rémi Verschelde
2c7fcdd7f9
Merge pull request #56352 from Gallilus/Include-base-signals-to-VisualScriptEmitSignal
2022-01-05 11:02:10 +01:00
Rémi Verschelde
118f6d42ac
Merge pull request #56380 from RedMser/export_gltf_normal_crash
2022-01-05 10:46:32 +01:00
Rémi Verschelde
c6bd3ca191
Merge pull request #56290 from nikitalita/fix-gltf-mesh-prims
2022-01-05 10:34:08 +01:00
K. S. Ernest (iFire) Lee
07a39684a0
options dict is now passed to _import_scene.
2022-01-05 01:07:54 -08:00
Rémi Verschelde
6d4ed65f4c
Merge pull request #56483 from vnen/gdscript-warning-annotation
...
Add annotation to ignore warnings
2022-01-05 09:05:56 +01:00
K. S. Ernest (iFire) Lee
5ce54ce142
Merge pull request #52541 from V-Sekai/gltf-load-scene-buffer
...
Add gltf import buffer.
2022-01-04 12:12:09 -08:00
Rémi Verschelde
ba2bdc478b
Style: Remove inconsistently used `@author` docstrings
...
Each file in Godot has had multiple contributors who co-authored it over the
years, and the information of who was the original person to create that file
is not very relevant, especially when used so inconsistently.
`git blame` is a much better way to know who initially authored or later
modified a given chunk of code, and most IDEs now have good integration to
show this information.
2022-01-04 20:42:50 +01:00
Ellen Poe
cd91f91d40
Merge pull request #56375 from Cnidarias/ogg_missing_right_channel
...
Fix OGG Vorbis playback with more than one channel
2022-01-04 07:51:07 -08:00
K. S. Ernest (iFire) Lee
d8923d8c74
Add import glb from buffer
...
Split functions from gltf document import and export into six functions.
Use base path to allow two code paths based on an empty base path or a full base path.
Add uri decode in _parse_buffers.
2022-01-04 06:06:03 -08:00
George Marques
fd643c903d
GDScript: Add annotation to ignore warnings
2022-01-04 09:32:43 -03:00
Rémi Verschelde
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
Rémi Verschelde
98b3ba1842
Merge pull request #53957 from fabriceci/new-template-workflow
2022-01-03 20:40:33 +01:00
cdemirer
3033e0f8a2
Fix gdscript-parser crash
...
Fixes gdscript-parser crashing while printing empty identifiers.
2022-01-03 08:47:18 +08:00
fabriceci
9d5b807059
Improve editor template workflow
...
Co-Authored-By: jmb462 <jmb462@gmail.com>
2022-01-02 21:52:09 +01:00
kobewi
2cad775461
Fix usage of "Return" in the docs
2022-01-02 21:09:18 +01:00
luz paz
a124f1effe
Fix various typos
...
Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn`
Update editor/import/resource_importer_layered_texture.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update doc/classes/TileSetScenesCollectionSource.xml
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/graph_edit.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/rich_text_label.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Revert previously committed change
2022-01-02 01:03:58 -05:00
cdemirer
511e699fee
Fix unexpected Packed Array copying when parameter is typed
2022-01-02 05:43:52 +08:00
RedMser
0e36d5e782
Fix glTF scene export crash on null normal texture
...
Also removes a redundant get_texture call directly below
the modified code block.
Fixes #56379
2021-12-31 17:45:03 +01:00
Cnidarias
51106a481c
Fix OGG Vorbis playback with more than one channel
...
When an OGG Vorbis file has more than one channel we accidentily were
assigning only the left channel to both the L and R channels of the
AudioFrame output buffer
2021-12-31 15:31:57 +01:00
David Cambré
6a2a9d2267
Include base signals to VisualScriptEmitSignal
2021-12-30 20:08:54 +01:00
Raul Santos
5254b28632
Fix getting properties state when reloading C#
...
When reloading C# classes and keep their properties values they are
retrieved and stored in a state list.
Retrieving the properties was only getting the fields of the C# class
and not inherited fields so those properties values were lost on reload.
Now we also try to find the field in the parent classes.
2021-12-28 18:28:01 +01:00
nikitalita
f34ea3873e
FIX GLTF Document mesh primitive conversions
2021-12-27 17:36:58 -08:00
cdemirer
bb9469aa65
Fix member properties with getters don't update as subscript chain root
2021-12-28 07:52:44 +08:00
cdemirer
e8305e17ff
Fix member properties with only getters can't be set
2021-12-28 07:51:18 +08:00
kobewi
c055c912fb
Remove autocomplete_setters_and_getters setting
2021-12-27 00:48:32 +01:00
cdemirer
067b4c8c07
Fix type mutation upon compound assignment
2021-12-27 03:32:22 +08:00
SaracenOne
b22c805dbe
Fix 'Compiler bug: unresolved assign' on explicitly annotated variants.
2021-12-25 00:53:57 +00:00
cdemirer
455cc07f90
Fix operation result type inference
2021-12-23 20:45:24 +08:00
Raul Santos
1fdfc379b6
Fix `KeyValuePairAt` memory leak
2021-12-23 03:15:57 +01:00
Fabio Alessandrelli
e375cbd094
Bump mbedTLS version to 2.28.0 (new LTS).
...
Keep applying the windows entropy patch (UWP support).
Remove no longer needed padlock patch.
Update thirdparty README to reflect changes, and new source inclusion
criteria.
2021-12-21 13:26:02 +01:00
Nathan Franke
b5b75cad43
Use OrderedHashMap for enum_values
2021-12-16 21:49:42 -08:00
kobewi
59a9b2192e
Add physics material to GridMap
2021-12-17 01:50:58 +01:00
Xwdit
0430e26e6d
Fix enum int comparison
...
Fix enum int comparison
2021-12-16 16:14:14 +01:00
Fabio Alessandrelli
c5879dbe07
Merge pull request #53129 from Faless/net/4.x_enet_opts
...
[Net] ENet poll optimizations, fragmented unreliable transfer.
2021-12-15 16:02:55 +01:00
Jordan Schidlowsky
373d5ea103
[Net] ENet poll now only service the connection once.
...
It used to call `enet_host_service` until all events were consumed, but
that also meant constantly polling the connection leading to potentially
unbounded processing time.
It now only service the connection once, and instead consumes all the
retrieved events via `enet_host_check_events`.
2021-12-15 14:03:42 +01:00
Jordan Schidlowsky
397d895fb7
[Net] ENetMultiplayerPeer now sends fragmented packets unreliably too.
...
It used to always send them reliably when transfer mode was unreliable
or ordered if the packet size was more then the enet host MTU (1400
bytes by default).
This commit also adds a warning when debug is enabled to explain the
effects of sending fragmented packets unreliably.
2021-12-15 14:03:42 +01:00
Rémi Verschelde
703a1be507
Merge pull request #55952 from Faless/net/4.x_webrtc_mp_connect_fix
2021-12-15 12:38:10 +01:00
Fabio Alessandrelli
84112d9610
[Net] Fix WebRTC returning packets from peers too early.
...
Due to the async nature of WebRTC implementations, the multiplayer peer
could end up having queued packets from a given connection before it is
able to emit the "peer_added" signal.
This commit ensures that packets from peers which are not notified yet
are skipped by `get_packet` and `get_available_packet_count`.
2021-12-15 11:07:46 +01:00
bruvzg
01bac2c469
[Text Server] Fix re-shaping of substrings, improve oversampling scale.
2021-12-15 11:57:22 +02:00
jvanmourik
4070f55ff0
glTF animation parsing: Changed the 'loop' and 'cycle' animation name keywords to be case-insensitive
2021-12-15 01:25:30 +01:00
Gilles Roudière
ab8119b5f6
Avoid a crash in the gdscript analyser
2021-12-14 15:54:25 +01:00
Yuri Roubinsky
a2ef2b0be1
Fix incorrect placement of default value editor in visual scripts
2021-12-13 19:32:24 +03:00
Yuri Roubinsky
566895732c
Fix shadowed global identifier warning duplication
2021-12-13 11:54:23 +03:00
Ellen Poe
fe51c099c1
Fix OGG streams never ending playback
2021-12-10 18:09:58 -08:00
Rémi Verschelde
f19a1e28c8
Revert "Fix auto reload scripts on external change"
2021-12-10 22:40:20 +01:00
Rémi Verschelde
0ba7103bea
Merge pull request #55702 from nekomatata/physics-solver-settings
2021-12-10 22:10:41 +01:00
Aaron Franke
368c0bc0ac
Misc build system fixes
2021-12-10 12:14:27 -06:00
cdemirer
1cf3f382ba
Fix "Lookup Symbol" on global class members
...
"Lookup Symbol" on global class members now does switch to the relevant script.
2021-12-10 19:56:46 +08:00
Rémi Verschelde
f455660e93
Merge pull request #55572 from aaronfranke/ci-double
2021-12-10 10:02:38 +01:00
Rémi Verschelde
bdf8340e59
Merge pull request #43181 from nathanfranke/string-empty
...
Replace String comparisons with "", String() to is_empty()
2021-12-10 08:56:31 +01:00
Aaron Franke
e9808e3d9a
Add a double-precision editor build to CI
2021-12-09 09:52:48 -06:00
Rémi Verschelde
012b2b5385
Merge pull request #55700 from Razoric480/raz/lsp-extraneous-code
2021-12-09 13:12:49 +01:00
Nathan Franke
49403cbfa0
Replace String comparisons with "", String() to is_empty()
...
Also:
- Adds two stress tests to test_string.h
- Changes to .empty() on std::strings
2021-12-09 04:48:38 -06:00
Rémi Verschelde
4129c1d140
Merge pull request #55299 from nathanfranke/renames
2021-12-09 10:22:24 +01:00
Rémi Verschelde
1a8741aaca
Merge pull request #49473 from cptchuckles/fix-auto-reload-scripts
2021-12-09 10:06:22 +01:00
Nathan Franke
41a20171eb
align to horizontal_alignment, valign to vertical_alignment, related
2021-12-09 01:38:46 -06:00
PouleyKetchoupp
8682adcb87
Add physics solver settings to project settings
...
Helps with discovery and setup of physics solver settings, in a specific
project settings section for both 2D and 3D.
Other changes for cleanup:
-Removed unused space parameters in 3D
SPACE_PARAM_BODY_ANGULAR_VELOCITY_DAMP_RATIO
SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS
-Added custom solver bias for Shape3D (same as Shape2D)
-Improved documentation for solver settings
2021-12-07 12:08:04 -07:00
Francois Belair
ad01201f34
Remove extraneous return to LSP
2021-12-07 12:37:11 -05:00
Raul Santos
2deabd553f
Various fixes to C# documentation
2021-12-07 12:54:24 +01:00
Ignacio Roldán Etcheverry
37302b5c24
Merge pull request #55675 from raulsntos/csharp-basis-quaternion
...
Rename C# `Quaternion()` -> `GetQuaternion()`
2021-12-07 12:48:55 +01:00
Aaron Franke
6eb7179f1c
Rename "items_count" property to "item_count"
2021-12-06 22:02:27 -06:00
Raul Santos
838f80ed91
Rename C# `Quaternion()` -> `GetQuaternion()`
...
To keep consistency with GDScript, the method `Quaternion()` is renamed
`GetQuaternion()`, and made `internal` so it's not exposed to scripting.
The documentation references are also fixed.
Also, the methods `GetQuaternion()` and `GetRotationQuaternion()` are
moved below `GetEuler()` to follow alphabetic order.
2021-12-06 20:18:40 +01:00
Ignacio Roldán Etcheverry
2f41af7d2d
Merge pull request #55655 from raulsntos/csharp-items-count
...
Replace deprecated `GetItemCount()` with `ItemsCount`
2021-12-06 19:54:40 +01:00
Raul Santos
4a339dc8fd
C# script reload fixed
...
Co-authored-by: Michael Bickel <mib@developium.net>
Co-authored-by: Germanrc <german_1995a@hotmail.com>
2021-12-06 19:45:59 +01:00
Rémi Verschelde
be975e5d18
Merge pull request #55624 from Razoric480/raz/cs-lsp-signal
2021-12-06 17:46:25 +01:00
jmb462
81efebb3a1
Fix bad popups offset in editor with single window off
...
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com>
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2021-12-06 14:29:48 +01:00
Rémi Verschelde
5baf20e638
Merge pull request #34005 from aaronfranke/minmax
2021-12-06 14:01:45 +01:00
Rémi Verschelde
3a7d5a1c64
Merge pull request #55651 from Calinou/remove-more-debug-prints
2021-12-06 10:30:37 +01:00
Raul Santos
3609ca67df
Replace deprecated GetItemCount() with ItemsCount
...
Replace the deprecated method `GetItemCount()` with the new property
`ItemsCount`.
2021-12-06 02:17:03 +01:00
Ignacio Roldán Etcheverry
97034939fe
Merge pull request #55597 from raulsntos/csharp-source-generators-generics
...
Fix C# `Godot.SourceGenerators` for generic classes
2021-12-06 00:04:36 +01:00
Hugo Locurcio
89ec3d3bc7
Remove or make verbose some debugging prints
...
The message about SpatialMaterial conversion was turned into a warning,
as it can potentially interfere with porting projects from Godot 3.x
(if there's a bug in the conversion code).
2021-12-05 23:22:23 +01:00
Rémi Verschelde
49799ab454
Merge pull request #55559 from pycbouh/docs-overridden-cross-linked
2021-12-05 18:37:19 +01:00
Raul Santos
d5d1645e15
Bump Godot.NET.Sdk and SourceGenerators versions
...
Bump `Godot.NET.Sdk` to version 4.0.0-dev6.
Bump `Godot.SourceGenerators` to version 4.0.0-dev3.
Use floating version 4.0.*-* for package references in Sdk.
2021-12-05 15:56:18 +01:00
Raul Santos
c52f21335c
Fix Godot.SourceGenerators for generic classes
...
Fix invalid C# generated by source generators for generic classes and
add generic classes to the Sample project for testing.
2021-12-05 15:52:25 +01:00
Nathan Franke
de7873c2d8
Auto-Increment Debugger Port
...
Note: This PR also changes the port of the GDScript Language Server from 6008 to 6005. This opens enough ports above the debug port (6007) for this change to be useful.
2021-12-04 15:25:13 -06:00
Francois Belair
66f1b4bf66
Prevent LSP adding signal func to non GDScripts
2021-12-04 10:58:05 -05:00
Ignacio Roldán Etcheverry
2a9dd654bc
Merge pull request #55563 from raulsntos/csharp-delegates-for-generic-class
...
Fix C# `get_all_delegates` method for generic classes
2021-12-04 12:38:09 +01:00
cdemirer
6204d956b8
Fix nested ternary-if codegen ( #55582 )
2021-12-04 10:12:02 +08:00
Raul Santos
d28be4d580
Fix get_all_delegates method for generic classes
...
If the class is generic, we must get its generic type definition and use
it to retrieve the delegates.
2021-12-04 02:54:33 +01:00
Raul Santos
c3fb5ff359
Fix typo in `gdscript_parser`
2021-12-03 21:47:27 +01:00
Yuri Sizov
b3992f7e6e
Make overridden properties link to parent definition
...
Co-authored-by: Josh DeGraw <joshmdegraw@gmail.com>
2021-12-03 17:47:22 +03:00
Aaron Franke
24f57886d0
Expose max_axis_index and max_axis_index for Vector2(i)
...
Some cleanup with Vector3(i)'s methods so that it is consistent with Vector2, for example it returns enums internally (GDScript still gets ints).
2021-12-02 23:45:41 -06:00
Vincent
8263646f68
AudioStreamMP3: expose loop properties to the editor
2021-12-03 03:14:20 +01:00
Rémi Verschelde
1f666a972f
NavigationMeshInstance: Fix typo to 'vertices'
2021-12-03 01:54:15 +01:00
Carlo Cabanilla
75b61ea1f4
Let MultiMeshInstances affect NavigationMeshes
2021-12-02 14:50:49 -08:00
Rémi Verschelde
892a5a72cd
Merge pull request #55474 from akien-mga/copy-operators-no-reference
2021-12-02 17:34:45 +01:00
Rémi Verschelde
213ee89ae8
Merge pull request #55529 from raulsntos/rename-vector-params
2021-12-02 00:01:51 +01:00
Rémi Verschelde
7f7e54656b
Merge pull request #55533 from nekomatata/bullet-query-shape-index
2021-12-01 23:47:57 +01:00
Raul Santos
a367378f9e
Rename Vector parameters to be consistent
...
Renames parameters that were named differently across different
scripting languages or their documentation to use the same name
everywhere.
2021-12-01 21:14:46 +01:00
PouleyKetchoupp
02d40de30d
Fix shape index in multiple physics queries with Bullet
...
Two main changes:
- Better handling of concave shapes to make sure the queries don't
return a triangle index instead of shape index.
Note: A concave shape within a compound shape will always return a shape
index of 0 because of Bullet limitations.
- Extra check for compound shapes in some queries to avoid undefined
behavior, because the shape index can have an uninitialized value with
convex shapes in some cases.
2021-12-01 11:03:41 -07:00
Vincent
2d0068d1cb
Fix crash when loading an invalid mp3 file
2021-12-01 14:30:38 +01:00
Rémi Verschelde
7da392bcc5
Don't return reference on copy assignment operators
...
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this
can lead to confusing code and subtle bugs.
According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B) , C++
allows any arbitrary return type, so this is standard compliant.
This could be re-assessed if/when we have an actual need for a behavior more
akin to that of the C++ STL, for now this PR simply changes a handful of
cases which were inconsistent with the rest of the codebase (`void` return
type was already the most common case prior to this commit).
2021-11-30 16:26:29 +01:00
SaracenOne
3eec759e87
Check for nullptr expression in parse_precedence function
2021-11-29 11:29:15 +00:00
Yuri Roubinsky
ce48604eb7
Enchance descriptions of @GlobalScope/@GDScript
2021-11-25 14:24:09 +03:00
Aaron Franke
9851d3c5b2
Move logic for saving project features to ProjectSettings save_custom
2021-11-25 03:08:05 -06:00
Umang Kalra
387a333b94
Fixes variable/singal nodes not renaming in visualscript editor
2021-11-24 23:56:43 +05:30
Lightning_A
e078f970db
Rename `remove()` to `remove_at()` when removing by index
2021-11-23 18:58:57 -07:00
Rémi Verschelde
3ba2d17d2f
Merge pull request #54949 from Chaosus/fix_warning
2021-11-23 15:15:36 +01:00
Rémi Verschelde
c7007f83d5
Merge pull request #55243 from KoBeWi/some_random_stuff_idk
2021-11-23 13:41:35 +01:00
kobewi
4682f22293
Improve various texts
2021-11-23 12:20:57 +01:00
jitspoe
8f433a1f53
Fix crash when exporting meshes to gltf that have no skin.
2021-11-22 22:40:47 -05:00
Rémi Verschelde
76aa1d0a43
Merge pull request #55151 from Chaosus/control_reset_size
2021-11-22 16:22:57 +01:00
Yuri Roubinsky
eabf8f5edf
Added `reset_size` method to `Control` and `Window` classes
2021-11-22 16:55:21 +03:00
JFonS
ea8d0deb4b
Merge pull request #54919 from williamd67/GPULightmapper-improve-noise-to-prevent-artifacts
...
GPULightmapper: better algorithm to generate rays for indirect lighting
2021-11-22 12:10:09 +01:00
Pawel Lampe
1a15a3adf6
Fix GDScript parser crash on 'dollar mixed with assignment' expression
...
fixes #53696
2021-11-21 21:18:46 +01:00
Pawel Lampe
4a5d98c987
Fix godot crash on null expression, fixes #53862
2021-11-21 20:58:52 +01:00
Pawel Lampe
86c0e38e8f
Fix 'unreachable-code' false-positive, fixes #55154
2021-11-21 15:53:21 +01:00
Marcel Admiraal
826ea43af6
Fix merge conflict between #42711 and #42374
2021-11-21 07:01:33 +00:00
Rémi Verschelde
bf18965a51
Merge pull request #55126 from akien-mga/wslay-45d22583b
2021-11-20 10:47:20 +01:00
Rémi Verschelde
e97634f56d
Merge pull request #55127 from akien-mga/libwebp-1.2.1
2021-11-20 10:47:00 +01:00
Rémi Verschelde
e6fd2d550e
Merge pull request #55115 from akien-mga/tinyexr-1.0.1
2021-11-20 10:45:56 +01:00
Marcel Admiraal
6b54ac98d7
Add shape data to area overlap data.
2021-11-20 08:06:53 +00:00
kobewi
ca4c63d654
Always soft-reload scripts
2021-11-19 17:45:16 +01:00
Rémi Verschelde
a706ef3272
wslay: Sync with upstream 45d22583b
...
45d22583b4
Mostly style changes, a couple new methods and fixes.
Tweak file structure a bit.
2021-11-19 15:47:20 +01:00
William Deurwaarder
2ee77f6f05
GPULightmapper: better algorithm to generate rays for indirect lighting
...
Previous algorithm used an algorithm to generate rays that was not completely
random. This caused artifacts when large lighmap textures were used.
The new algorithm creates better rays and by that prevents artifacts.
2021-11-19 15:29:43 +01:00
Rémi Verschelde
41ce417847
libwebp: Sync with upstream 1.2.1
...
Changes: https://chromium.googlesource.com/webm/libwebp/+/1.2.1/NEWS
2021-11-19 13:55:13 +01:00
Rémi Verschelde
432ac521ef
miniupnpc: Update to version 2.2.3
...
Library code and public headers are now properly separated, we can fix include paths
to remove the redundant subfolder.
2021-11-19 12:00:37 +01:00
Rémi Verschelde
46d3effa99
tinyexr: Sync with upstream 1.0.1
...
Removes miniz as a bundled dependency, relies on our own zlib instead.
Includes a couple commits ahead of `v1.0.1` tag to fix MinGW builds.
2021-11-19 11:25:14 +01:00
Camille Mohr-Daurat
0deccc550c
Merge pull request #42374 from madmiraal/fix-32776
...
Trigger RigidBodyBullet space override updates when Area properties change.
2021-11-18 12:22:02 -07:00
Camille Mohr-Daurat
756eab200b
Merge pull request #42306 from madmiraal/fix-39947
...
Update Bullet Area overlaps when Area properties or shapes change.
2021-11-18 12:04:41 -07:00
Camille Mohr-Daurat
b7260e04cc
Merge pull request #44726 from madmiraal/fix-44644
...
Ignore Bullet collision contact points with distance = 0
2021-11-18 11:16:15 -07:00
Yuri Roubinsky
9536b3b59a
Fix `randfn` in visual scripts
2021-11-17 18:52:44 +03:00
Yuri Roubinsky
a74acca858
Expose `randfn` to global scope
2021-11-17 14:29:19 +03:00
Hugo Locurcio
8fb7e622a6
Rename built-in `SGN()` macro to `SIGN()`
...
This matches the name of the GDScript function (except it's uppercase
here).
2021-11-16 20:40:49 +01:00
Rémi Verschelde
471e7cbfc7
Merge pull request #54581 from aaronfranke/operator-docs
2021-11-16 14:10:09 +01:00
Rémi Verschelde
6c1bd4d227
Replace Godot docs URL with `$DOCS_URL` in XML class reference
2021-11-15 13:02:21 +01:00
Stefan Boronczyk
5059d8a46c
Fix mono build after invalid rename of `KEY_READ`
...
Follow-up to #51684 .
2021-11-15 08:49:37 +01:00
reduz
cd2a499084
Add path to functions that return iporter options
...
-Allows displaying custom options for specific file format variants
-Added support for scene format import to retrieve custom options
This PR is necessary for #54886 to be implemented properly.
2021-11-14 14:06:10 -03:00
Yuri Roubinsky
3396b25489
Allow using built-in names for variables, push warnings instead
2021-11-13 21:47:24 +03:00
Aaron Franke
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
Aaron Franke
2ad3d1bd7a
Make OpenSimplex and VisualScript modules not depend on the editor
2021-11-12 12:03:54 -06:00
Aaron Franke
ae713f8980
Add a minimal template build to CI
...
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-11-12 09:30:50 -06:00
Rémi Verschelde
88c4380737
Modules: Make sure to include modules_enabled.gen.h where needed
2021-11-12 13:42:58 +01:00
kobewi
3b320cd9fe
Show built-in script names in the debugger
2021-11-11 20:47:09 +01:00
bruvzg
74b9892f7a
[GDScript] Check string literals for Unicode direction control characters.
2021-11-11 15:41:59 +02:00
Rémi Verschelde
d209369fa3
Merge pull request #54840 from Calinou/mono-move-exception-policy-setting
2021-11-10 18:33:18 +01:00
Hugo Locurcio
a9a45ee7ee
Move Mono unhandled exception setting to be located within a subsection
...
Settings that aren't within a subsection are difficult to reach when
other settings do have a subsection.
This also adds documentation for the project setting.
2021-11-10 17:31:54 +01:00
PouleyKetchoupp
bfd0d33244
Fix errors in CharacterBody when floor is destroyed or removed
...
In all physics servers, body_get_direct_state() now silently returns
nullptr when the body has been already freed or is removed from space,
so the client code can detect this state and invalidate the body rid.
In 2D, there is no change in behavior (just no more errors).
In 3D, the Bullet server returned a valid direct body state when the
body was removed from the physics space, but in this case it didn't
make sense to use the information from the body state.
2021-11-10 08:27:33 -07:00
Rémi Verschelde
e8870ddefc
Merge pull request #54676 from Chaosus/gds_restrict_names
2021-11-10 15:20:44 +01:00
Rémi Verschelde
92ae349668
Merge pull request #54358 from Shawak/feature-allow-root-node-paths-without-quote
2021-11-10 15:19:17 +01:00
Silc 'Tokage' Renew
571ea72f35
fix pingpong in math
2021-11-10 14:31:56 +09:00
Rémi Verschelde
06a33e590f
Merge pull request #53819 from TokageItLab/re-implement-ping-pong
...
Reimplement ping-pong animation and reverse playback
2021-11-09 22:11:04 +01:00
Rémi Verschelde
e3f3fc517a
Merge pull request #54653 from KoBeWi/built_in_scripts_deserved_that
...
Improve save handling for built-in scripts
2021-11-09 21:46:58 +01:00
Maximilian
c7a8e047cc
Allow using $/root node paths
...
format
fix shadowing
use match instead of comparison
Update gdscript_parser.cpp
2021-11-09 18:46:28 +01:00
Rémi Verschelde
26f82563de
Merge pull request #54798 from Calinou/gdscript-opcode-no-hash
2021-11-09 14:01:34 +01:00
Hugo Locurcio
605784f019
Remove hash symbol in front of opcode error messages in GDScript
...
The hash symbol creates spurious issue references on GitHub if
the message is posted outside a code block, which means some issues
have a lot more references than originally intended.
2021-11-09 12:20:16 +01:00
Rémi Verschelde
bc6ec58456
Merge pull request #47600 from qarmin/enable_mono_editor
2021-11-09 12:13:11 +01:00
qarmin
071829acc5
Enable mono editor build in CI
2021-11-09 11:02:04 +01:00
Rémi Verschelde
5968653662
Merge pull request #46721 from bruvzg/custom_word_break_punct
2021-11-09 00:13:59 +01:00
Rémi Verschelde
d9a74fd07f
Merge pull request #54372 from bruvzg/text_edit_ui
2021-11-09 00:13:25 +01:00
Rémi Verschelde
236fd3305b
Merge pull request #54473 from briansemrau/no-debug-functions-on-thread
2021-11-08 19:37:48 +01:00
Yuri Roubinsky
95f6f3c756
Prevent identifiers from naming as built-in funcs and global classes
2021-11-08 21:35:31 +03:00
Rémi Verschelde
78ed2c05a2
Merge pull request #54118 from Pineapple/dont-ignore-type-mismatch-in-setter-master
2021-11-08 19:26:27 +01:00
Rémi Verschelde
6c8a1683a5
Merge pull request #54663 from Gallilus/VisualScript-sync-and-improve-variable-anb-property
2021-11-08 13:13:52 +01:00
kobewi
134e4d168b
Improve save handling for built-in scripts
2021-11-07 23:51:12 +01:00
Francois Belair
4995a477ff
Fix LSP crash when parsing signal symbols.
...
If the number of parameters was less than the number of class members, the LSP would cause godot to crash because it was using the index for class members instead of the index for signal parameters.
Fixes #54720 .
2021-11-07 12:20:25 -05:00
Yuri Roubinsky
9b0dddd8e5
Fix example in `NoiseTexture` doc
2021-11-06 19:49:22 +03:00
David Cambré
d763ee8398
VisualScript-sync-and-improve-variable-and-property
2021-11-06 13:03:38 +01:00
Aaron Franke
813466b3c8
Add documentation to operators for math types
...
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2021-11-04 14:44:55 -05:00
Aaron Franke
744b43b527
Fix Quaternion multiplication operator
2021-11-04 11:24:46 -05:00
kobewi
e393c2a734
Add is_built_in() method to Resource
2021-11-04 12:45:58 +01:00
Hugo Locurcio
c012fbc8b2
Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`
...
This is consistent with other constants that include `NO`,
such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
2021-11-03 23:06:17 +01:00
David Cambré
8714e1e961
Fixes copy-paste issue in the visual script editor
...
Moves copy and paste in their own functions so copy_nodes_request and paste_nodes_request are able to work.
Applies paste offset to the last mouse clicked position.
2021-11-03 20:40:52 +01:00
Rémi Verschelde
a2803f3d86
Merge pull request #54072 from KoBeWi/hrcr_is_ded
2021-11-03 17:31:48 +01:00
Silc 'Tokage' Renew
953a7bce7e
reimplement ping-pong
2021-11-03 13:39:33 +09:00
Rémi Verschelde
81c93caf02
Merge pull request #54471 from rafallus/callable_area_monitor
2021-11-02 23:20:41 +01:00
Rémi Verschelde
5efb11926d
Merge pull request #54346 from mhilbrunner/used-what-instead-of-what
2021-11-02 08:48:58 +01:00
Rémi Verschelde
ce9e90af01
Merge pull request #54494 from lyuma/fix_override_materials
...
glTF: Fix override materials and non-empty arrays
2021-11-02 08:11:57 +01:00
Lyuma
de93d48901
glTF: Fix override materials and non-empty arrays
...
Keep track of MeshInstance and GeometryInstance override materials in the GLTFMesh object.
Ensure all arrays are non-empty to conform with "minItems":1 in glTF spec.
2021-11-01 23:22:45 -07:00
rafallus
770e3a8e51
Use `Callable` in Area monitor callback
2021-11-01 21:53:17 -06:00
Rémi Verschelde
7b83039885
Merge pull request #54490 from q66/ppc
2021-11-01 23:27:21 +01:00
Rémi Verschelde
0fbf53dbc5
Merge pull request #54387 from Calinou/editor-translations-increase-zlib-compression-level
2021-11-01 23:22:55 +01:00
Daniel Kolesa
3a84a64d2f
Add support for PowerPC family
2021-11-01 22:25:53 +01:00
Brian Semrau
d3051b2637
GDScript gracefully handle debug functions from separate thread
2021-11-01 12:13:25 -04:00
Rémi Verschelde
1dd742777a
Merge pull request #53452 from aaronfranke/who-let-the-docs-out
2021-10-31 23:18:32 +01:00
Rémi Verschelde
1aef3a42b2
Merge pull request #54448 from CakHuri/treshold-to-threshold
...
Repair mistyped of 'threshold' on several files.
2021-10-31 18:32:18 +01:00
Rémi Verschelde
16dc607f8a
Merge pull request #54307 from Calinou/add-opengl-renderer-squash
...
Add OpenGL renderer (squashed)
2021-10-31 18:30:38 +01:00
M. Huri
4052d85d05
Repaired mistyped of 'threshold' on several files.
2021-10-31 22:11:42 +07:00
bruvzg
3f33e1d7d6
Add functions for getting name and font style from dynamic and bitmap fonts.
...
Add font selection toolbar editor plugin.
2021-10-31 12:40:58 +02:00
Raul Santos
2913c32db5
Ensure C# script properties are added to the end
...
Ensures that the `get_property_list` and `get_script_property_list`
methods push the script properties to the end of the given list, this
prevents the script property from appearing after the script variables.
2021-10-30 17:11:40 +02:00
Hugo Locurcio
ce97ddbcb1
Rename GLES2 driver to OpenGL to prepare for the upgrade to GLES3
...
- Use lowercase driver names for the `--rendering-driver`
command line argument.
2021-10-30 02:05:49 +02:00
Aaron Franke
6772ebcea0
Move the docs for constructors and operators out of methods section
2021-10-29 12:34:57 -05:00
Hugo Locurcio
89cf17c96f
Use maximum zlib compression when generating editor translation headers
...
With comments stripped, this reduces the combined generated translation
size from 28.7 MB to 28.4 MB (-240 KB).
2021-10-29 19:07:48 +02:00
Ignacio Roldán Etcheverry
7d99ccda1d
Merge pull request #54361 from raulsntos/csharp-call-able-callable
...
Implement Call methods in C# Callable
2021-10-29 17:27:04 +02:00
Fabio Alessandrelli
dae626ad64
Merge pull request #54344 from mhilbrunner/rpc-error-msgs
...
Websockets: Fix buffer size checks in put_packet(), silent failures/connection hangs
2021-10-29 16:12:34 +02:00
Max Hilbrunner
38126690c7
Websockets: Fix buffer size checks in put_packet()
...
Also check the error return value of wslay_event_queue_msg()
2021-10-29 15:35:57 +02:00
Raul Santos
21afb63485
Implement Call methods in C# Callable
...
Implements Callable.Call and Callable.CallDeferred methods in C#
2021-10-28 22:49:17 +02:00
Rémi Verschelde
f7d852b532
Merge pull request #54350 from akien-mga/clang-format-dont-align-operands
2021-10-28 17:10:52 +02:00
Rémi Verschelde
0ae65472e7
clang-format: Enable `BreakBeforeTernaryOperators`
...
clang-format keeps breaking the way it handles break *after* ternary operators,
so I give up and go with the only style they seem to actually test.
2021-10-28 15:57:41 +02:00
Rémi Verschelde
6b090e325a
Merge pull request #53526 from KoBeWi/super_print
2021-10-28 15:47:52 +02:00
Rémi Verschelde
3a6be64c12
clang-format: Various fixes to comments alignment from `clang-format` 13
...
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28 15:43:36 +02:00
Rémi Verschelde
3b11e33a09
clang-format: Disable alignment of operands, too unreliable
...
Sets `AlignOperands` to `DontAlign`.
`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 15:19:35 +02:00
Max Hilbrunner
626ca50676
Improve GDScript indentation error message
2021-10-28 13:01:53 +02:00
Max Hilbrunner
7a55aac49c
Fix Macros -> Mactos typo in WEBSOCKETMACTOS_H
2021-10-28 12:45:00 +02:00
bruvzg
63f3051154
Implement TextServer `strip_diacritics` function.
2021-10-28 10:12:57 +03:00
bruvzg
44a241b241
ICU: Update to version 70.1
2021-10-28 09:15:28 +03:00
kobewi
de4f29f458
Remove node_hrcr hack
2021-10-28 01:43:34 +02:00
Rémi Verschelde
c2640e2b21
Merge pull request #54254 from mhilbrunner/ticks-msec-64
2021-10-26 14:53:56 +02:00
Max Hilbrunner
5dc02eb8b0
Save all 64 bits of get_ticks_msec() in more cases
2021-10-26 13:58:58 +02:00
Lyuma
cada1a4747
gltf: Fix validation errors due to chunk padding and empty skins.
...
GLB chunk padding length calculation was backwards and missing for the BIN chunk.
Fixed error caused by "skins":[] when no skins were present.
Finally, encode animations before textures to avoid accessor misalignment due to texture byteLength.
2021-10-25 21:12:43 -07:00
reduz
d03b7fbe09
Refactored Node3D rotation modes
...
* Made the Basis euler orders indexed via enum.
* Node3D has a new rotation_order property to choose Euler rotation order.
* Node3D has also a rotation_mode property to choose between Euler, Quaternion and Basis
Exposing these modes as well as the order makes Godot a lot friendlier for animators, which can choose the best way to interpolate rotations.
The new *Basis* mode makes the (exposed) transform property obsolete, so it was removed (can still be accessed by code of course).
2021-10-25 14:34:00 -03:00
bruvzg
ebbc25e89c
Ignore empty Font resources as theme override.
...
Add range hint to font_size properties.
Remove excessive `base_size` Font property.
2021-10-25 14:05:37 +03:00
Rémi Verschelde
6ccc3e4d87
Merge pull request #54130 from raulsntos/csharp-exports
...
Keep order for C# exported members
2021-10-24 21:17:58 +02:00
Silc 'Tokage' Renew
653e2a550c
Fixed animation insertion in SkeletonEditor
2021-10-23 16:50:00 +09:00
Aaron Franke
474d0f58f5
Add support for the RISC-V architecture
...
Supports RV64GC (RISC-V 64-bit with general-purpose and compressed-instruction extensions)
2021-10-22 12:51:10 -05:00
Rémi Verschelde
beb3875cdf
Merge pull request #53781 from m4gr3d/restrict_project_data_dir_config_master
2021-10-22 19:30:35 +02:00
Raul Santos
c6ecc04114
Keep order for C# exported members
2021-10-22 19:25:01 +02:00
Rémi Verschelde
9f7218eb69
Merge pull request #54088 from madmiraal/remove-unimplemented-methods
2021-10-22 12:59:32 +02:00
Bartłomiej T. Listwon
42cce2891f
Don't ignore the type mismatch in setter function
2021-10-22 12:44:33 +02:00
Marcel Admiraal
87a4ba492e
Remove unimplemented methods
2021-10-21 18:44:25 +01:00
Rémi Verschelde
133c1eb0af
Merge pull request #52367 from Duroxxigar/improve-nav-error-messages
...
Improve readability for failing errors in nav area
2021-10-21 19:36:16 +02:00
PouleyKetchoupp
e6f7235ffb
Fix SoftDynamicBody3D crash when setting disable mode
...
Proper logic for changing physics state when disabled and disabled mode
is changed (it was unnecessarily making calls to re-initialize physics).
Extra error handling in soft body implementations to avoid crashes with
invalid mesh.
2021-10-21 08:56:12 -07:00
Rémi Verschelde
b9a59f60c1
Mono: Fix build after #52940
...
Chose to pass unhandled exceptions to the toaster, we might want to reconsider
if those are already reported somewhere else (e.g. in the Mono panel).
2021-10-20 11:07:20 +02:00
Rémi Verschelde
9471de7e00
Merge pull request #53081 from williamd67/GPULightmapper-first-dilate-than-denoise
2021-10-19 13:23:22 +02:00
Bastiaan Olij
96b707215d
Add support for returning the play area from XRInterface
2021-10-19 21:17:04 +11:00
Rémi Verschelde
4387f9645b
Merge pull request #52940 from groud/toast_notification
2021-10-19 09:57:13 +02:00
Rémi Verschelde
723b988fde
Merge pull request #52210 from BastiaanOlij/enhance_xr_trackers
2021-10-19 08:11:32 +02:00
Ignacio Roldán Etcheverry
cad05f012d
C#: Fix property set call boxing value when unboxed was expected
2021-10-19 00:33:51 +02:00
ne0fhyk
b5c750fa65
Restrict the project data directory configuration
2021-10-18 14:10:38 -07:00
Rémi Verschelde
297c5c72e9
Merge pull request #53760 from V-Sekai/import-post
2021-10-18 11:32:36 +02:00
Rémi Verschelde
850394bc07
Merge pull request #53946 from BenjaminNavarro/fix_dbg_check
2021-10-18 10:40:55 +02:00
Rémi Verschelde
76d90bb568
Merge pull request #53943 from raulsntos/fixup-53581
2021-10-18 10:38:41 +02:00
Benjamin Navarro
560d9a4cc0
Fix incorrect debug check for setters
...
the check read the return type of the setter, which doesn't exist and
lead to a segmentation fault. Now we check the first function parameter.
Probably a bad copy/paste of the getter case
2021-10-18 09:01:16 +02:00
Raul Santos
bc47bacc9e
Fix marshaling generic Godot.Object in C#
2021-10-18 03:07:47 +02:00
Anutrix
a4b736658e
Remove unused imports in .py, SCsub and SConstruct files
2021-10-18 01:50:34 +05:30
opl-
ad14b80e2a
Fix name used instead of doc for GDScript signals
2021-10-17 05:54:27 +02:00
Bastiaan Olij
5d1ea92daf
Rework XR positional trackers
2021-10-17 12:12:20 +11:00
Rémi Verschelde
a4e1a07d83
Merge pull request #53865 from reduz/implement-blend-shape-tracks
2021-10-16 16:48:10 +02:00
Rémi Verschelde
d6aab5c1bf
SCons: Fix missing mono `.gen.cpp` sources after #53860
2021-10-16 15:53:14 +02:00
reduz
ae1c016547
Implement Animation Blend Shape Tracks
...
* New track type BLEND_SHAPE
* Blend shapes are imported via this new track type
* Processing is more optimized (no longer relies on variants)
* Modified the Blend Shape API in MeshInstance3D to use indices rather than StringNames (more optimizes)
* Promo: Fixed a small bug in gizmo updating in Node3D that affected performance
Dedicated BlendShape tracks are required for both optimization and eventually implementing them in animation compression.
2021-10-16 08:36:05 -03:00
William Deurwaarder
5465ef83cb
GPULightmapper: execute dilate also after denoise
...
Dilate fills gaps that are caused by the rasterization. As dilate is based on
the alpha-channel which is not part of denoise, dilate can be run after denoise
as well. So that colors are not denoised/mixed over seams.
2021-10-16 11:28:37 +02:00
William Deurwaarder
a7599076d2
GPULightmapper: execute dilate before denoise
...
Dilate fills gaps that are caused by the rasterization. Previously denoise
was done before dilate which caused the gaps to become filled (non-zero). This
resulted that the gaps were not recognized by
dilate and the background color leaked.
This is fixed by executing dilate before denoise.
2021-10-16 11:28:37 +02:00
Rémi Verschelde
08d1ce718d
Merge pull request #53856 from vnen/gdscript-setter-crash
2021-10-15 21:35:42 +02:00
George Marques
b0725a3b7d
GDScript: Avoid crash if missing setter signature
2021-10-15 15:53:24 -03:00
Raul Santos
035e14c69d
Fix hint_string for C# enum arrays
2021-10-15 19:23:40 +02:00
Rémi Verschelde
fe4ca9e4df
Merge pull request #53849 from bruvzg/ts_index_checks
2021-10-15 19:13:58 +02:00
bruvzg
efb1c03243
[TextServer] Add texture index, offsets array size and Unicode char validation.
2021-10-15 18:36:00 +03:00
Rémi Verschelde
f113dc9863
Merge pull request #53627 from raulsntos/fix-list-marshal
2021-10-15 17:35:45 +02:00
Rémi Verschelde
6fb06ec47e
Merge pull request #53581 from raulsntos/mono-marshal-generics
2021-10-15 17:35:21 +02:00
Rémi Verschelde
4a0a91facf
Merge pull request #53576 from raulsntos/fix-mono-to-variant-array
2021-10-15 17:34:43 +02:00
Rémi Verschelde
1efe7093be
Merge pull request #53833 from akien-mga/remove-webm-support
2021-10-15 17:33:06 +02:00
Rémi Verschelde
3f888966c0
Merge pull request #53843 from vnen/gdscript-typed-array-subscript-constant
...
Fix inferred typed array marked as constant
2021-10-15 16:49:29 +02:00
Rémi Verschelde
d15512c17f
Merge pull request #53844 from williamd67/GPULightmapper-increase-ray-triangle-hit-rate
2021-10-15 16:31:55 +02:00
George Marques
540821a264
GDScript: Fix inferred typed array marked as constant
2021-10-15 10:40:50 -03:00
William Deurwaarder
a3f315c81b
GPULightmapper: increase ray triangle hit rate
...
Currently the method ray_hits_triangle determines triangles not to be hit by
a ray due to an epsilon that is too big. In practice those triangles are hit by
those rays.
This is fixed by introducing a smaller epsilon.
2021-10-15 15:19:43 +02:00
reduz
b3bf90b3ce
Add scene Post-Import Plugin support.
...
* New plugin system to control the whole import workflow
* Can add options and run code at every import step (general, per node, mesh, animation, material etc.)
This constitutes a first version of these plugins. The ability to interact with the import preview dialog will likely be added later on.
2021-10-15 09:12:04 -03:00
Rémi Verschelde
ae74e78909
Remove WebM support (and deps libvpx and opus)
...
We've had many issues with WebM support and specifically the libvpx library
over the years, mostly due to its poor integration in Godot's buildsystem,
but without anyone really interested in improving this state.
With the new GDExtensions in Godot 4.0, we intend to move video decoding to
first-party extensions, and this would likely be done using something like
libvlc to expose more codecs.
Removing the `webm` module means we can remove libsimplewebm, libvpx and
opus, which we were only used for that purpose. Both libvpx and opus were
fairly complex pieces of the buildsystem, so this is a nice cleanup.
This also removes the compile-time dependency on `yasm`.
Fixes lots of compilation or non-working WebM issues which will be linked
in the PR.
2021-10-15 12:09:11 +02:00
Rémi Verschelde
027d1f1551
Merge pull request #53822 from vnen/gdscript-await-issues
...
Fix a few issues with await in GDScript
2021-10-15 07:26:48 +02:00
George Marques
84abb9a76c
GDScript: Fix typing for await expression
...
Don't grab the type of the awaited value unless it's constant (which
makes it synchronous) or call (which always use the proper return type).
2021-10-14 20:30:06 -03:00
George Marques
749d89ae38
GDScript: Remove error when coroutine is called without await
...
In the case the call happens as a statement, since the return value
isn't used in this case.
2021-10-14 20:12:01 -03:00
George Marques
056a54db7b
GDScript: Properly return value with await on non-coroutine
...
If the keyword `await` is used without a coroutine, it should still
return the value synchronally.
2021-10-14 19:58:10 -03:00
George Marques
d36213bab8
GDScript: Make sure calls don't use return when not needed
2021-10-14 19:55:45 -03:00
K. S. Ernest (iFire) Lee
8f0c056431
Fix specific warnings issues by Clang
...
Found by `scons dev=yes` on llvm-mingw.
2021-10-14 14:14:26 -07:00
Rémi Verschelde
472ff40f71
Merge pull request #53807 from vnen/dont-share-arrays-and-dicts
2021-10-14 20:42:22 +02:00
George Marques
4c14051b3f
Zero Dictionary and Array variants when changing type with reset
...
So they don't reference to the old values anymore and instead refer to
a new value.
2021-10-14 11:22:17 -03:00
George Marques
bf322bacdd
Merge pull request #53726 from briansemrau/gd-outer-class
...
GDScript 2.0: Access outer scope classes
2021-10-14 10:12:52 -03:00
Gilles Roudière
0587e5e018
Implement toast notifications in the editor
2021-10-14 13:30:54 +02:00
Brian Semrau
0ff0f64cd4
GDScript: Access outer scope classes
2021-10-13 22:39:12 -04:00
K. S. Ernest (iFire) Lee
e3d1189916
Restore gltf animation export after split.
2021-10-13 15:18:27 -07:00
reduz
2dc823273e
Remove REST transform influence in skeleton bones
...
* Animations and Skeletons are now pose-only.
* Rest transform is kept as reference (when it exists) and for IK
* Improves 3D model compatibility (non uniform transforms will properly work, as well as all animations coming from Autodesk products).
2021-10-13 14:51:29 -03:00
Rémi Verschelde
3e86ca5586
Merge pull request #53689 from reduz/remove-animation-transform3d-track
2021-10-13 12:40:33 +02:00
K. S. Ernest (iFire) Lee
b7ceec9d7b
Error check GLTFDocumentExtensionConvertImporterMesh::import_post.
2021-10-13 02:55:09 -07:00
Rémi Verschelde
9e05f80dae
Merge pull request #53744 from williamd67/GPULightmapper-prevent-endless-loop
2021-10-13 11:40:37 +02:00
Rémi Verschelde
2c46a1f327
Merge pull request #53743 from williamd67/GPULightmapper-process-rays-to-sky
2021-10-13 11:40:27 +02:00
Rémi Verschelde
2eeb9a8d0e
Merge pull request #53322 from williamd67/GPULightmapper-skip-smoothen-positions-flat-triangle
2021-10-13 11:40:14 +02:00
reduz
ec19ed3723
Remove animation 3D transform track, replace by loc/rot/scale tracks.
...
* `Animation.TYPE_TRANSFORM3D` track is gone.
* Added POSITION_3D, ROTATION_3D, SCALE_3D tracks.
* GLTF2, Collada, FBX importers will only import the track types found.
* Skeleton3D bone poses are now Pos/Rot/Scale, pose matrix removed.
* AnimationPlayer and AnimationTree animate these tracks separately, only when found.
* Removed BakeReset code, is useless with these changes.
This is the first in a series of commits designed to make the animation system in Godot more useful, which includes:
* Better compatibility with Autodesk products
* Better reusability of animations across models (including retargeting).
* Proper animation compression.
* etc.
*Note* GLTF2 animation saving went broken with this PR, needs to be fixed in a subsequent one.
2021-10-12 20:08:42 -03:00
William Deurwaarder
f3f64389ca
GPULightmapper: prevent loop with max iterations
...
In case the calculation of the delta contained infinity values (division by
zero), than later the calculation of the next cell failed as the infinity value
was multiplied by zero which resulted in a nan. The nan-value caused that the
next cell was equal to the current cell which resulted in an end-less loop,
which only terminates by the maximum iterations protection.
This is solved by replacing infinity with grid_size which acts as infinity.
2021-10-12 23:43:34 +02:00
William Deurwaarder
fbd95c3e53
GPULightmapper: process rays to sky in all bounces as active
...
Before this change only rays to the sky (RAY_MISS) in the first bounce were
processed as active rays. This caused artifacts, areas were too light, when
more than one bounce were processed.
Now rays to the sky are processed as active rays for all bounces.
2021-10-12 23:25:45 +02:00
Rémi Verschelde
88463c3eee
Merge pull request #53712 from CakHuri/nullptr
...
Replace NULL with nullptr
2021-10-12 22:30:43 +02:00
William Deurwaarder
9e58b02252
GPULightmapper: skip smoothen positions for flat triangles
...
Smoothening positions for flat, non-smoothened, triangles is unnecessary and
caused positions to move outside their triangle which caused side-effects as
rays from those positions intersected with triangles which could not be
reached from the original triangle.
This is solved by skipping smoothening of positions for flat triangles.
A triangle is determined to be flas as its vertex normals are equal.
2021-10-12 18:23:16 +02:00
Rémi Verschelde
e4288bf728
Merge pull request #53720 from vnen/gdscript-typed-array-custom-class
2021-10-12 16:51:50 +02:00
George Marques
34288b24a6
GDScript: Fix typed array with custom classes
2021-10-12 10:41:04 -03:00
M. Huri
033dc4dbef
Replaced NULL with nullptr
2021-10-12 20:20:19 +07:00
George Marques
45f546c1d8
GDScript: Make setter parameter type same as variable type
2021-10-12 09:39:23 -03:00
Rémi Verschelde
b67e68bce3
Merge pull request #53697 from bruvzg/ts_string_names
2021-10-12 12:45:24 +02:00
bruvzg
8e98e71997
Move static feature set and number system `StringName`s to the singleton.
...
Remove `hb_` prefix from the custom bitmap font functions to avoid potential conflicts with the HarfBuzz.
Cleanup commented debug code.
Update numbering system data to CLDR 39.
2021-10-12 12:47:18 +03:00
Rémi Verschelde
0fd50ff217
Merge pull request #52736 from aaronfranke/lgtm-mult
...
Fix some LGTM errors of "Multiplication result converted to larger type"
2021-10-12 08:38:46 +02:00
Aaron Franke
7e51e4cb84
Fix some LGTM errors of "Multiplication result converted to larger type"
2021-10-12 00:17:27 -05:00
M. Huri
b981c111c9
Fixed a typo in csg module
2021-10-12 11:12:19 +07:00
Juan Linietsky
610de0974d
Revert "Implement reverse playback and ping-pong loop in AnimationPlayer and NodeAnimation"
2021-10-11 19:27:50 -03:00
Rémi Verschelde
9ed4f8367b
Merge pull request #48332 from TokageItLab/implement-ping-pong
2021-10-11 22:55:01 +02:00
Rémi Verschelde
5edfdc53eb
Merge pull request #53681 from Paulb23/rejig-syntax-highligher-bind
...
Move add_syntax_highlighter bind to ScriptEditorBase
2021-10-11 19:56:43 +02:00
Yuri Roubinsky
188e08307e
Merge pull request #53647 from Chaosus/gds_fix_builtin_functions_autocompletion
2021-10-11 20:29:43 +03:00
Paulb23
3010bca41b
Move add_syntax_highlighter bind to ScriptEditorBase
2021-10-11 18:13:31 +01:00
Yuri Roubinsky
e270d1cce3
Fix autocompletion of built-in functions in GDScript
2021-10-11 19:06:17 +03:00
George Marques
a6414b34e9
Merge pull request #53430 from DavidSichma/typed_safe_setter
...
Made typed member setters safe
2021-10-11 11:16:19 -03:00
George Marques
f930d54140
Merge pull request #53103 from ZuBsPaCe/gdscript-analyze-properties-fix
...
GDScript: Report property type errors
2021-10-11 11:01:39 -03:00
Yuri Sizov
41e271af6e
Remove redundant String operation from GDScript enum exports
2021-10-11 02:11:32 +03:00
Raul Santos
ba4a88eaed
Fix C# List<T> marshalling
2021-10-10 11:40:07 +02:00
Tokage
372ba76663
implement ping-pong loop in animation
...
Co-authored-by: Chaosus <chaosus89@gmail.com>
2021-10-09 18:08:43 +09:00
mashumafi
575d4e00b6
Enhance and cleanup stringify for Vector
2021-10-09 06:19:25 +00:00
Rémi Verschelde
5ae569560d
Fix missing argument names in bindings
...
While at it, tweak some boolean setters to use `p_enabled` for the bool.
Also renames `draw_minimap()` to `set_draw_minimap()`.
2021-10-09 00:20:10 +02:00
David Sichma
d28f2ee7a5
Only emit typed member setters if safe to do so
...
Instructions are now only emitted if input type matches expected type.
Otherwise usual setter fallback.
2021-10-08 23:54:55 +02:00
Duroxxigar
54d305eebe
Improved readability for failing error conditions
2021-10-08 17:29:25 -04:00
ZuBsPaCe
551ceb590b
GDScript: Report property type errors
...
Inline getters & setters are now FunctionNodes.
Their names are set in the parser, not in the compiler.
GDScript-Analyzer will now run through getter and setter.
Also report wrong type or signature errors regarding getset properties.
Added GDScript tests for getters and setters.
#53102
2021-10-08 22:06:15 +02:00
Raul Santos
0be9664b42
Support marshaling generic Godot.Object
...
Allows using generic C# types in signals as long as they inherit
from `Godot.Object`.
2021-10-08 20:00:47 +02:00
Raul Santos
1f62d309d8
Support arrays of StringName, NodePath and RID in mono
2021-10-08 18:50:21 +02:00
Max Hilbrunner
5733c13f53
Merge pull request #53536 from Faless/mp/4.x_rpc_config
...
[Net] Add call_local argument to Node.rpc_config.
2021-10-08 14:15:01 +02:00
George Marques
b010f96c89
Merge pull request #53336 from briansemrau/gdscript-i'm-not-my-own-local-class
...
[GDScript 2.0] fix script base class self-assignment
2021-10-08 09:10:19 -03:00
Fabio Alessandrelli
54ec66a700
[Net] Rename RPCConfig.sync to call_local.
...
For consistency with the other user facing changes.
2021-10-08 12:39:09 +02:00
George Marques
3a856b4fcc
GDScript: Use getter return type for the property type
...
The PropertyInfo hints are more relevant for the inspector. The getter
return type is more reliable and less likely to be incorrect and it is
what's going to be called in the end.
2021-10-07 20:22:19 -03:00
Rémi Verschelde
49e7e049ab
Merge pull request #53422 from KoBeWi/add_LUA_to_Godot
2021-10-07 23:37:37 +02:00
Rémi Verschelde
6090f90743
Merge pull request #53545 from vnen/gdscript-release
2021-10-07 23:28:34 +02:00