Commit graph

57053 commits

Author SHA1 Message Date
Yuri Sizov
4328ffcc79 Fix ThemeDB initialization in tests
Also fixes class name shadowing in Viewport/Window tests.
2023-09-04 18:07:16 +02:00
Rémi Verschelde
75de1ca768
Merge pull request #81280 from ogapo/deterministic_pcks
Fix for non-deterministic behavior in PCKPacker
2023-09-04 09:09:23 +02:00
Rémi Verschelde
f05c7f6d68
Merge pull request #81239 from Malcolmnixon/xr-tracking-signals
Add XR tracking state-change signals
2023-09-04 09:08:59 +02:00
Rémi Verschelde
00e14f39fd
Merge pull request #81230 from SamiKalliomaki/array-dispose
Fix double unregistration on dispose of Array.
2023-09-04 09:08:35 +02:00
Rémi Verschelde
0215d53a10
Merge pull request #81229 from raulsntos/dotnet/arc-hyperbolic
C#: Expose `asinh`, `acosh` and `atanh` in Mathf
2023-09-04 09:08:12 +02:00
Rémi Verschelde
a0d21d41a8
Merge pull request #80149 from aaronfranke/fix-res-reimport-empty-scene
Fix error message when reimporting resources with an empty scene open
2023-09-04 09:07:48 +02:00
Rémi Verschelde
92da5a7654
Merge pull request #79792 from Miguel0312/SceneTreeTooltips
Correctly display tooltips for buttons in Tree when they overlap cell content
2023-09-04 09:07:24 +02:00
Rémi Verschelde
dd4fae6162
Merge pull request #74809 from Chaosus/completion_color_xyzw
Add coloring for completion of vector components
2023-09-04 09:06:57 +02:00
David Nikdel
067807c1cb Remove nondeterminism in pck_packer
PCK files (like other build products) should be deterministic based on their inputs. Removed calls to Math::rand() that are being used to generate padding.

Looks like these were introduced as part of adding encryption support, but the padding being random does not have any cryptographic significance. This can be trivially inferred since file blocks that happen to be aligned don't get padding anyway.

If there's a desire to indroduce something that functions as a nonce it should probably be added explicitly and only if encryption is enabled.
remove Math::rand() calls in editor_export_platform.cpp

follow up to make consistent with pck_packer
2023-09-03 18:14:30 -04:00
Aaron Franke
ff911c3ad3
Fix error message when reimporting resources with an empty scene open 2023-09-03 11:40:48 -05:00
Malcolm Nixon
22de1b31b5 Added XR tracking-state change signals
Add "pose_lost_tracking" signal to XRPositionalTracker.
Add "tracking_changed" signal to XRNode3D.
2023-09-03 12:17:16 -04:00
Sami Kalliomäki
43a6748dfd Do not call Array default constructor when not necessary.
This fixes a bug where Array would get registered twice with the
DisposablesTracker causing an exception on shutdown.

Fixes #81231
2023-09-03 11:25:23 +01:00
Rémi Verschelde
fa3428ff25
Merge pull request #81221 from dalexeev/editor-inspector-and-signal-dock-improvements
Editor: Inspector and Signal docks improvements
2023-09-03 00:21:04 +02:00
Rémi Verschelde
497ca8c433
Merge pull request #80296 from RandomShaper/overhaul_vk_pso_cache
Enhance Vulkan PSO caching
2023-09-03 00:20:40 +02:00
Rémi Verschelde
3f3f865f8a
Merge pull request #81247 from Bromeon/bugfix/yet-another-bool
GDExtension: fix `bool` unknown in C
2023-09-02 23:10:47 +02:00
Jan Haller
4e202bcec7 GDExtension: fix bool unknown in C 2023-09-02 21:04:49 +02:00
Rémi Verschelde
d2ae309f2c
Merge pull request #81238 from dsnopek/godot-cpp-version
Use godot-cpp 4.1 for the "Godot CPP" CI workflow to prevent circular dependency
2023-09-02 14:33:12 +02:00
Rémi Verschelde
7dc14db283
Merge pull request #81232 from wlsnmrk/lineedit-reference-typos
Fix typos in LineEdit documentation
2023-09-02 14:32:10 +02:00
Rémi Verschelde
b842c73acc
Merge pull request #81228 from raulsntos/docs/code_to_constants
Use `[constant]` instead of `[code]` when possible
2023-09-02 14:31:46 +02:00
Rémi Verschelde
865879faf9
Merge pull request #81227 from raulsntos/docs/int
Fix int's C# documentation
2023-09-02 14:31:23 +02:00
Rémi Verschelde
f383249f6f
Merge pull request #81212 from mateuseap/fix/meshDataToolClassReference
Fix misleading description of `MeshDataTool.get_vertex()` method
2023-09-02 14:31:00 +02:00
Rémi Verschelde
c326914c49
Merge pull request #81206 from dsnopek/script-instance-extension-memory-bug2
GDExtension: Allocate `GDExtensionScriptInstanceInfo2` for compatibility on the heap to prevent crash
2023-09-02 14:30:36 +02:00
Rémi Verschelde
07035466e8
Merge pull request #81189 from jsjtxietian/Fix-press-space-when-enter-editor-layout-name-will-confirm-save
Use `ui_text_submit` instead of `ui_accept` to confirm and close text prompts
2023-09-02 14:30:12 +02:00
Rémi Verschelde
d18963485e
Merge pull request #81106 from garychia/gridmap_visibility
GridMap: Ensure the visibility is updated when entering the tree
2023-09-02 14:29:48 +02:00
Rémi Verschelde
bb61a932c2
Merge pull request #81072 from KoBeWi/the_scene_file_is_in_another_castle
Refactor disabling scene tab context menu options
2023-09-02 14:29:24 +02:00
Rémi Verschelde
60422759fa
Merge pull request #80849 from KoBeWi/edit_NOTHING
Unedit nodes early when closing scene tab
2023-09-02 14:29:00 +02:00
Rémi Verschelde
2e71e5516e
Merge pull request #80632 from Repiteo/C#-editor-docstring
C#: Dereference editor types in core documentation
2023-09-02 14:28:35 +02:00
Rémi Verschelde
7f3dbe81ed
Merge pull request #80270 from aaronfranke/gltf-scene-name-assignment
Fix doubly-reserved unique names in GLTF scene name assignment
2023-09-02 14:28:11 +02:00
Rémi Verschelde
ec517dcbaf
Merge pull request #76047 from Daylily-Zeleen/daylily-zeleen/builtin_vararg_ptrcall
Set vararg methods' ptrcall of builtin classes, and let them can be called without arguments.
2023-09-02 14:27:41 +02:00
Raul Santos
f90005072c
C#: Expose asinh, acosh and atanh in Mathf 2023-09-02 12:00:02 +02:00
Danil Alexeev
c33ca26e17
Editor: Inspector and Signal docks improvements 2023-09-02 08:50:28 +03:00
David Snopek
80126468fb Use godot-cpp 4.1 for the "Godot CPP" CI workflow to prevent circular dependency 2023-09-01 16:11:51 -05:00
Thaddeus Crews
cbf17b5ac1
C#: Dereference editor types in core documentation 2023-09-01 15:17:13 -05:00
kobewi
a949f1b4b5 Refactor disabling scene tab context menu options 2023-09-01 21:34:54 +02:00
Daylily-Zeleen
67e1401891 Set builtin varrarg ptrcalls, called without arg. 2023-09-02 00:34:16 +08:00
Mark Wilson
5f9d5a0cea Docs: Fix typos for LineEdit reference 2023-09-01 12:22:10 -04:00
Raul Santos
0897a795c3
Fix int's C# documentation
- There's no implicit conversion from `double` to `int`, a cast was missing.
- The example about literals in GDScript also applies to C# (with the same syntax even).
2023-09-01 17:00:09 +02:00
Raul Santos
03add1f6d8
Use [constant] instead of [code] when possible 2023-09-01 16:57:53 +02:00
Rémi Verschelde
80bfca20c6
Merge pull request #81198 from KoBeWi/MissingRID
Add placeholder RID to GradientTexture1D
2023-09-01 16:03:22 +02:00
Rémi Verschelde
e3522e0d85
Merge pull request #81190 from timothyqiu/nav-agent-3d-doc
Fix typos in NavigationAgent3D documentation
2023-09-01 16:02:59 +02:00
Rémi Verschelde
bbdd1aaa38
Merge pull request #81131 from AThousandShips/callable_fix
Fix comparison of `Callable`s with binds
2023-09-01 16:02:35 +02:00
Rémi Verschelde
a47729d16b
Merge pull request #81111 from akien-mga/zlib-1.3
zlib/minizip: Update to version 1.3
2023-09-01 16:02:11 +02:00
Rémi Verschelde
fa3072f625
Merge pull request #81087 from mateuseap/docs/tweenClassReference
Add a note about `SceneTree.create_tween()` method
2023-09-01 16:01:47 +02:00
Rémi Verschelde
07f6fa8ff9
Merge pull request #80629 from Repiteo/C#-CS0419
C#: Include argument types in generated methods
2023-09-01 16:01:24 +02:00
Rémi Verschelde
5588980e47
Merge pull request #80184 from MewPurPur/gray=abstract
Use the gray color for all abstract classes
2023-09-01 16:00:58 +02:00
Rémi Verschelde
d134473a03
Merge pull request #78404 from jynus/arc-hyperbolic
Add inverse hyperbolic functions `asinh()`, `acosh()` & `atanh()`
2023-09-01 16:00:33 +02:00
Rémi Verschelde
39b1d860c3
Merge pull request #75382 from AThousandShips/duplicate_bind
Ensure binds are duplicated with `Node` signals
2023-09-01 16:00:05 +02:00
jsjtxietian
ba41910967 Use ui_text_submit to confirm and close text prompts
Fix press space when enter editor layout name will
confirm and save layout, same in theme editor
2023-09-01 12:23:30 +08:00
Mateus Elias
fe45774f59 Fix misleading description of MeshDataTool.get_vertex() method 2023-08-31 21:13:34 -03:00
Jcrespo
528a76486c Add inverse hyperbolic functions asinh(), acosh() & atanh()
GDScript has the following built-in trigonometry functions:

- `sin()`
- `cos()`
- `tan()`
- `asin()`
- `acos()`
- `atan()`
- `atan()`
- `sinh()`
- `cosh()`
- `tanh()`

However, it lacks the hyperbolic arc (also known as inverse
hyperbolic) functions:

- `asinh()`
- `acosh()`
- `atanh()`

Implement them by just exposing the C++ Math library, but clamping
its values to the closest real defined value.
For the cosine, clamp input values lower than 1 to 1.
In the case of the tangent, where the limit value is infinite,
clamp it to -inf or +inf.

References #78377
Fixes godotengine/godot-proposals#7110
2023-09-01 01:27:56 +02:00