Commit graph

34014 commits

Author SHA1 Message Date
Rémi Verschelde
217d9d1b30
Merge pull request #47147 from TwistedTwigleg/skeletonik_changes_and_bug_fixes_regressionfix
Fix for regression in SkeletonIK code
2021-03-18 23:45:37 +01:00
TwistedTwigleg
c15e23396d Fix for regression in SkeletonIK code 2021-03-18 17:52:59 -04:00
Rémi Verschelde
d0f0fdb6ad
Merge pull request #47141 from bruvzg/mac_export_force_sign
Add "Replace existing signature" to the macOS export (enabled by default).
2021-03-18 22:23:20 +01:00
bruvzg
9e18fce943
Add "Replace existing signature" to the macOS export (enabled by default). 2021-03-18 23:00:05 +02:00
Rémi Verschelde
8a7e503337
Merge pull request #47115 from jcsho/fix-tree-null-stylebox
Check for null pointer in get_column_width(0)
2021-03-18 20:34:08 +01:00
PouleyKetchoupp
7bbd545432 Disable backface collision with ConcavePolygonShape by default
Helps a lot with soft bodies and generally useful to avoid shapes to go
through the ground in certain cases.

Added an option in ConcavePolygonShape to re-enable backface collision
on specific bodies if needed.
2021-03-18 11:30:22 -07:00
Justin Ho
fa6fd3a2d0
Check for null pointer in get_column_width(0) 2021-03-18 10:25:55 -07:00
Rémi Verschelde
2274d4eebc
Mono: Fix Android build after #46900 2021-03-18 17:58:21 +01:00
PouleyKetchoupp
d5ea4acd2d SoftBody support in GodotPhysics 3D
- Fixed SoftBody surface update with new rendering system
- Added GodotPhysics implementation for SoftBody
- Added support to get SoftBody rid to interact with the physics server
- Added support to get SoftBody bounds from the physics server
- Removed support for unused get_vertex_position and get_point_offset
from the physics server
- Removed SoftBody properties that are unused in both Bullet and
GodotPhysics (angular and volume stiffness, pose matching)
- Added RenderingServerHandler interface to PhysicsServer3D so the physics servers don't need to reference the class from SoftBody node directly
2021-03-18 09:04:17 -07:00
Rémi Verschelde
4ca1e73ff9
doc: Sync classref with current source
And move GLTF docs to its module folder.
2021-03-18 16:37:43 +01:00
Rémi Verschelde
2fd445cc18
Merge pull request #47133 from groud/navigation_2d_bugfix
Make 2D navigation consider scale
2021-03-18 15:42:46 +01:00
Gilles Roudière
6249ebb9c8 Make 2D navigation consider scale 2021-03-18 15:17:23 +01:00
George Marques
997a8ae9e8
Make Variant setget use set() method of Array
This ensure that typed arrays are properly checked when setting an
element.

Moved the macro to a straight declaration since the macro was only used
for Array and it now is quite specific to the Array class.
2021-03-18 10:18:59 -03:00
George Marques
fbfdd5e110
Add functions to retrieve type of a typed Array 2021-03-18 10:18:58 -03:00
George Marques
497dab94be
Don't check type when assigning Array
The array should just assimilate the type of the other one since
assignment in this case means a change in the reference.

This also adds a `typed_assign` function for the cases where type
validation is wanted.
2021-03-18 10:18:58 -03:00
Rémi Verschelde
c097ce0c18
Merge pull request #47125 from BastiaanOlij/SCsub_compile_shaders
Changed SCsub for shaders to find shaders automatically
2021-03-18 11:20:57 +01:00
Rémi Verschelde
4cc309291e
Merge pull request #47119 from Calinou/tweak-editor-splash-screen-color
Tweak the editor splash screen color to better match the default theme
2021-03-18 11:13:35 +01:00
Rémi Verschelde
c34b110784
Merge pull request #47098 from Birdulon/DocDrawString4
Documentation: Correct CanvasItem.draw_string position description.
2021-03-18 09:08:40 +01:00
Luke Hubmayer-Werner
886c942b40 Documentation: Correct CanvasItem.draw_string position description.
Also add height warnings to Font.get_char_size and Font.get_string_size
2021-03-18 18:09:23 +10:30
Rémi Verschelde
400f6f1676
Merge pull request #47112 from jmb462/fix-AudioEffectCapture-buffer-length-cannot-be-changed
Fix AudioEffectCapture buffer length cannot be changed (Fix #47107)
2021-03-18 08:28:11 +01:00
Bastiaan Olij
7f63c9e7c9 Changed SCsub for shaders to find shaders automatically and create dependencies with include files 2021-03-18 12:59:47 +11:00
Bastiaan Olij
b3a43430aa Fixes on android:
- creating Vulkan context instead of OpenGL
- checking for validity of ENV in wrapper classes
- fix for access to JavaVM from threads
2021-03-18 10:41:54 +11:00
jmb462
b588232b83 Fix AudioEffectCapture buffer length cannot be changed 2021-03-17 23:07:38 +01:00
Hugo Locurcio
ff2871f9ac
Tweak the editor splash screen color to better match the default theme
This helps achieve a visually "smoother" transition between the splash
screen and the editor.
2021-03-17 22:57:35 +01:00
Rémi Verschelde
888051889e
Merge pull request #46674 from cmd410/fix-tab-container
Fix TabContainer _get_tab_width for localized node names
2021-03-17 21:05:20 +01:00
Rémi Verschelde
e57f6e2cca
Merge pull request #47050 from jmb462/fix-bbcode-tables-overlap-with-bottom-text
Fix BBCode tables overlap with bottom text (Fix #47012)
2021-03-17 17:54:01 +01:00
Rémi Verschelde
3150ef3427
Merge pull request #47104 from m4gr3d/fix_permissions_result_callback
Fix onMainRequestPermissionsResult callback for Android plugins.
2021-03-17 17:52:55 +01:00
Fredia Huya-Kouadio
8f285d93e8 Fix onMainRequestPermissionsResult callback for Android plugins. 2021-03-17 09:23:58 -07:00
Rémi Verschelde
2db80131f2
Merge pull request #47101 from Faless/js/4.x_fix_editor_manifest
[HTML5] Fix bogus Web Editor manifest.
2021-03-17 17:06:28 +01:00
Fabio Alessandrelli
85c1a41021 [HTML5] Fix bogus Web Editor manifest.
The `start_url` in the PWA manifest.json must be relative for it to
work in subfolders (like in the official Web Editor page).
2021-03-17 16:49:31 +01:00
Rémi Verschelde
db08e64a02
Merge pull request #47097 from ignacioabal/master
Added validation when assigning heightfield_resolution (Fix #46281)
2021-03-17 16:39:52 +01:00
Ignacio Abal
ccdd7ab890 Added validation when assigning heightfield_resolution (Fix #46281) 2021-03-17 12:03:52 -03:00
Rémi Verschelde
0615e55b27
Merge pull request #47064 from jmb462/fix-crash-in-uninitialized-AnimatedSprite2d-play
Fix crash on calling play() in a uninitialized AnimatedSprite2D (Fix #46013)
2021-03-17 15:21:34 +01:00
jmb462
324ab63844 Fix crash on calling play() in a uninitialized AnimatedSprite2D
When AnimatedSprite2D::play() was called before SpriteFrames has been initialized, a crach occurred (issue #46013).

Modification : An error message on null check test has been added to prevent crash.

Fix #46013.
2021-03-17 14:57:04 +01:00
Rémi Verschelde
7b223e8eec
Merge pull request #47080 from mbrlabs/ios-sensor-conversion
Converted sensor acceleration units to m/s² on iOS and UWP
2021-03-17 14:27:23 +01:00
Marcus Brummer
fda2743fef Converted sensor acceleration units to m/s^2 on iOS and UWP
This is beacuse on Android these values are already in m/s^2 while on
iOS and UWP they are in g. This just makes the behaviour consistent on
all platforms.
2021-03-17 14:05:05 +01:00
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