Commit graph

33607 commits

Author SHA1 Message Date
Rémi Verschelde
a851b72354
Merge pull request #47091 from gongpha/again-with-err-macro!-animation_tree_node
Check AnimationNode to update properties
2021-03-17 13:05:25 +01:00
Rémi Verschelde
3ef0e5a9bc
Merge pull request #46431 from vnen/gdnative-bindings
Further changes in GDNative API
2021-03-17 13:00:03 +01:00
Kongfa Waroros
981ca8045f Check AnimationNode to update properties 2021-03-17 18:33:29 +07:00
George Marques
ec806c5c5b
Added static method information the generated builtin API JSON 2021-03-17 08:33:08 -03:00
George Marques
8fddab9209
Further changes in GDNative API
- Added new_copy to all types, since trivial copy won't work for all
  types.
- Added functions to convert from String to char array types, which is
  not provided by the methods bound in Variant.
- Added operator index to String.
- Added missing cstring version of some Variant functions. They existed
  in the header but didn't have the implementation and were missing from
  the gdnative_api.json file.
- Added support for static calls on Variant types.
2021-03-17 08:26:10 -03:00
Rémi Verschelde
af0806722f
Merge pull request #47067 from nekomatata/cylinder-fix-margins
Fix Cylinder shape collision with margins when using GJK-EPA
2021-03-17 11:05:13 +01:00
Rémi Verschelde
3651406258
Merge pull request #47084 from nekomatata/cylinder-capsule-collision-fix
Fix capsule-cylinder collision in godot physics
2021-03-17 11:01:04 +01:00
Rémi Verschelde
8088218e1e
Merge pull request #47081 from nekomatata/collision-debug-shape-game-only
Disable debug collision shapes in the editor
2021-03-17 10:37:57 +01:00
Rémi Verschelde
00fcc9d340
Merge pull request #46855 from m4gr3d/add_android_samples
Enable `doNotStrip` when doing development/debugging within Android Studio
2021-03-17 10:28:29 +01:00
Rémi Verschelde
08ca4184f4
Merge pull request #47024 from groud/navigation
Allow Navigation to be more flexible
2021-03-17 09:18:54 +01:00
PouleyKetchoupp
380f04fa0d Fix capsule-cylinder collision in godot physics
Test specific axes before falling back to GJK-EPA algorithm to get more
accurate separation axes for common cases, the same way it's done for
cylinder-cylinder collision.
2021-03-16 19:22:59 -07:00
PouleyKetchoupp
9798a52a20 Disable debug collision shapes in the editor
If the editor was started with --debug-collisions, 3d shapes were
displayed twice, both with the gizmo and debug shapes. Some shapes could
also persist after being removed due to the usage of queue_free() to
destroy the debug shapes.
2021-03-16 18:02:33 -07:00
Fredia Huya-Kouadio
4380004176 Enable doNotStrip when doing development/debugging within Android Studio 2021-03-16 17:21:00 -07:00
Rémi Verschelde
9ca0d66a3b
Merge pull request #46984 from sboronczyk/fix-shader-issue
Vulkan: Fix crash when opening a ShaderMaterial with code saved as an external .shader file
2021-03-16 23:32:06 +01:00
Rémi Verschelde
d06a624a2d
Merge pull request #47074 from fire/unlock-bone-names
Expand bone name possibilities.
2021-03-16 23:31:34 +01:00
Rémi Verschelde
fbba496db5
Merge pull request #47070 from mbrlabs/docs-sensor-units
Document different unit of measurements for sensor data on iOS and Android
2021-03-16 23:21:55 +01:00
Rémi Verschelde
bc7e105821
Merge pull request #47079 from W4RH4WK/allow-nullptr-with-zero-length-get-buffer
Allow nullptr with zero length in FileAccess get_buffer
2021-03-16 23:16:36 +01:00
K. S. Ernest (iFire) Lee
c203fbfa8c Expand bone name possibilities. 2021-03-16 15:07:30 -07:00
Marcus Brummer
d1798b235c Document different unit of measurement for sensor data on iOS and Android 2021-03-16 23:06:40 +01:00
Alex Hirsch
c28428fe4d Allow nullptr with zero length in FileAccess get_buffer
fix #47071
2021-03-16 22:55:11 +01:00
Rémi Verschelde
97ce8708e8
Merge pull request #47076 from Faless/debugger/4.x_remote_peer_backoff
[Net] Make debugger peer less CPU intensive.
2021-03-16 22:14:21 +01:00
Fabio Alessandrelli
87353c90fa [Net] Make debugger peer less CPU intensive.
Make sure that RemoteDebuggerPeer wait at least 100us between polls
(effectively forcing a min tick of 100 microseconds).

This greatly improve performances (the call to poll was useless since
during low traffic, writes would always be available, and during high
traffic, reads would always be available, effectively making it a
busy-waiting loop). We could further improve this, by separating the two
polls, and adjust the min tick based on load, but this is most likely
more than enough already without sacrificing too much on high loads.
2021-03-16 21:48:15 +01:00
Rémi Verschelde
a6066c5e42
Merge pull request #47072 from bruvzg/hb_2_8_0
HarfBuzz: Update to version 2.8.0
2021-03-16 21:28:00 +01:00
Rémi Verschelde
d71c9f0005
Merge pull request #47065 from m4gr3d/fallback_to_text_project_godot
Fix bug causing `project.godot` to be ignored when `project.binary` is missing
2021-03-16 21:03:09 +01:00
bruvzg
b79e8c22f0
HarfBuzz: Update to version 2.8.0 2021-03-16 19:56:52 +02:00
PouleyKetchoupp
93076ef117 Fix Cylinder shape collision with margins when using GJK-EPA
In the case of falling back to GJK-EPA algorithm to generate cylinder
contact points, margins were never taken into account.

This fixes the depenetration phase for kinematic bodies and allows
consistent floor detection for cylinder shapes.
2021-03-16 10:19:26 -07:00
Rémi Verschelde
4c56fcd6cd
Merge pull request #39810 from christinoleo/master
Make GraphNode handle children with EXPAND flag
2021-03-16 18:10:08 +01:00
Fredia Huya-Kouadio
862e2df1a4 Fix bug causing project.godot to be ignored when project.binary is missing 2021-03-16 09:38:35 -07:00
Rémi Verschelde
224f5cab99
Merge pull request #46378 from reduz/static-method-in-variant-types
Add static method support to core Variant types
2021-03-16 15:44:04 +01:00
reduz
ecfa570ccb Add static method support to core Variant types
* Properly exposed, including validated and variant call
* Bound static functions in String and Color
* Did not add support for scripting languages, will have to be added manually.
2021-03-16 10:53:05 -03:00
Fabio Alessandrelli
21b05a3944
Merge pull request #45018 from akien-mga/miniupnpc-2.2.1
miniupnpc: Update to version 2.2.2
2021-03-16 12:03:06 +01:00
Rémi Verschelde
d1d09bf8bc
i18n: Sync translations with Weblate
(cherry picked from commit 94a0fc47f7)
2021-03-16 11:42:02 +01:00
Rémi Verschelde
69486b1059
miniupnpc: Update to version 2.2.2 2021-03-16 10:54:38 +01:00
Rémi Verschelde
245cfcaba6
Merge pull request #47046 from aaronfranke/sprite-frames
Move SpriteFrames to its own file in the resources folder
2021-03-16 10:43:49 +01:00
Rémi Verschelde
ab76957960
Merge pull request #47049 from m4gr3d/simplify_godot_plugin_methods_registration_master
Improve Godot Android plugin methods registration
2021-03-16 10:35:01 +01:00
Fredia Huya-Kouadio
2d574bcc85 Leverage java annotations to simplify the logic used to register the Godot plugin methods. 2021-03-16 01:16:08 -07:00
Aaron Franke
a94cef0ea0
Move SpriteFrames to its own file in the resources folder 2021-03-16 02:00:47 -04:00
Rémi Verschelde
a384fac953
Merge pull request #47014 from aaronfranke/atlastex-doc
Improve documentation for AtlasTexture
2021-03-15 21:12:34 +01:00
Rémi Verschelde
37740ecb0e
Merge pull request #47032 from Calinou/doc-acos-atan-range
Document the valid input range for `acos()` and `atan()`
2021-03-15 20:59:14 +01:00
Rémi Verschelde
8e293bac4e
Merge pull request #47033 from timothyqiu/crash-fix
Fix AnimationTree editor crash when renaming node
2021-03-15 18:33:31 +01:00
Rémi Verschelde
da15867b8c
Merge pull request #47027 from Faless/net/4.x_upnp_null_fixes
[Net] Fix miniupnpc when no interface is specified
2021-03-15 18:32:04 +01:00
Fabio Alessandrelli
163fc125cd [Net] Fix miniupnpc when no interface is specified
This is a tricky one, it used to work, but it was wrong, because in such
a scenario instead of passing NULL as required by the API, it would pass
a buffer containing the `\0` terminator.
This stopped working on a specific miniupnpc version, when they fixed
some network endianess issue on Windows, to which we made a workaround,
which in turn would probably result in failures when the interface is
specified.

This commit address the issue properly, by checking the specified
interface string size, and correctly passing NULL instead of the empty
string when necessary.

Also reverts the commit that introduced the bogus workaround:
e85330231c

One of those PR when the explaination is much longer then code changes
:).
2021-03-15 17:33:26 +01:00
Hugo Locurcio
d359e159da
Document the valid input range for acos() and atan() 2021-03-15 17:25:22 +01:00
Haoyu Qiu
eac806547f Fix AnimationTree editor crash when renaming node 2021-03-16 00:21:20 +08:00
Gilles Roudière
ac7073f586 Allow Navigation to be more flexible 2021-03-15 15:58:59 +01:00
Rémi Verschelde
6eef187a81
Merge pull request #46993 from gongpha/check-if-edit-called-via-editor
Check if _edit_set_position and _edit_set_rect was used outside an editor
2021-03-15 08:57:45 +01:00
Rémi Verschelde
d1b5c1d09f
Merge pull request #47019 from neikeq/csharp-fix-disconnec-events-signals-twice
C#: Fix disconnecting event signals twice
2021-03-15 08:36:48 +01:00
Kongfa Waroros
b80406770f Check if _edit_set_position and _edit_set_rect was used outside an editor 2021-03-15 14:34:24 +07:00
Rémi Verschelde
5375da2fdb
Merge pull request #44333 from lupoDharkael/preferred-extension
Save resource: give .res less priority as preferred extension
2021-03-15 08:22:09 +01:00
Rémi Verschelde
db0355cb07
Merge pull request #37065 from dreamsComeTrue/ruler-origin-fix
Reset ruler tool when switching tools with shortcuts
2021-03-15 08:15:07 +01:00