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
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
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