Commit graph

24902 commits

Author SHA1 Message Date
Marcel Admiraal
750f343e4a Ensure move_and_slide() is consistent between the 2D and 3D versions.
In the 3D version:
- Partially revert #20908 that was reverted in the 2D version as part
  of #21653. This ensures that the Vector returned is always perpendicular
  to the surface collided with; and not the floor_normal Vector passed to
  the function when on a floor.
- Include an update of the floor velocity before multiplying by the time
  delta, which was added to the 2D version as part of commit 13a8014.

In the 2D version:
- Use the Vector2.slide() function instead of Vector2.tangent() to adjust
  the amount of motion the stop_on_slope undoes to ensure that it is in the
  right direction. This is a implementation of the 3D approach from #30588.
- Combine the !found_collision and motion == Vector2() checks for break.
- Other minor formating changes to make the functions look identical.

Also renamed some variables to align with their use.
2019-12-02 08:35:50 +01:00
Rémi Verschelde
e64a663c59
Merge pull request #33992 from bruvzg/ios_modular_build
iOS modular build and export implementation.
2019-12-01 22:35:45 +01:00
Rémi Verschelde
d2858e2371
Merge pull request #34048 from KoBeWi/center_of_the_bookmark
Center Script Editor when jumping to bookmarks/breakpoints
2019-12-01 22:20:31 +01:00
Rémi Verschelde
e9b709a5db
Merge pull request #34047 from nekomatata/physical-bone-remove-joint
Properly remove joint when a physical bone is removed from the scene
2019-12-01 22:20:04 +01:00
bruvzg
2ef8c5fac5
iOS modular build and export implementation. 2019-12-01 21:57:18 +02:00
Tomasz Chabora
f4d0e598a7 Center Script Editor when jumping to bookmarks/breakpoints 2019-12-01 18:43:52 +01:00
PouleyKetchoupp
fdd99d4a7c Properly remove joint when a physical bone is removed from the scene
It was triggering a warning in bullet followed with a crash in some cases.
WARNING: assert_no_constraints: A body with a joints is destroyed. Please check the implementation in order to destroy the joint before the body.
     At: modules/bullet/rigid_body_bullet.cpp:465
2019-12-01 18:30:59 +01:00
Rémi Verschelde
ad95424dba
Merge pull request #34042 from touilleMan/issue-34041
Add missing on error manifest struct destroy in pluginscript script init
2019-12-01 16:29:23 +01:00
Rémi Verschelde
d42ff4c2ae
Merge pull request #34022 from nekomatata/animation-player-stop-errors
Fixed errors in AnimationPlayerEditor when switching current_animation in the inspector
2019-12-01 16:24:11 +01:00
Rémi Verschelde
d441536379
Merge pull request #34043 from Paulb23/27421_line_edit_remove_text_alignment
Fixed LineEdit text removal and placeholder caret alignment
2019-12-01 16:23:38 +01:00
Emmanuel Leblond
fb9b010384
Add missing on error manifest struct destroy in pluginscript script init 2019-12-01 16:15:31 +01:00
PouleyKetchoupp
d900cfafa3 Fixed errors in AnimationPlayerEditor when switching current_animation in the inspector
Case 1: start and stop an animation in the inspector
Case 2: start an animation in the inspector, then stop and start again in the track editor

Fixes #34021
2019-12-01 15:45:23 +01:00
Paulb23
b68703a35c Fixed caret alignment with placeholder text 2019-12-01 14:27:39 +00:00
Paulb23
3df68b4fa6 Fixed LineEdit alignment when removing text or undo / redo 2019-12-01 13:54:09 +00:00
Rémi Verschelde
52e3993eb0
Merge pull request #33994 from nekomatata/start-fail-errors
Flush remaining messages before quitting the game when loading fails
2019-12-01 11:53:43 +01:00
Rémi Verschelde
ea7f3037da
Merge pull request #34002 from KoBeWi/crashonat
Don't try to initialize empty NativeLibrary
2019-12-01 11:53:19 +01:00
Rémi Verschelde
7140d766a2
Merge pull request #33997 from akien-mga/doc-makerst-escape
makerst: Escape default values using reST markup
2019-12-01 11:52:20 +01:00
Rémi Verschelde
06fd6e6945
Merge pull request #34019 from nekomatata/inspector-transform-update
Update transform property in the inspector when changing translation/rotation/scale
2019-12-01 11:43:04 +01:00
Fabio Alessandrelli
6f38aeef52
Merge pull request #33640 from mewin/http_head_request
Fix HTTP HEAD requests
2019-12-01 05:50:33 +01:00
Rémi Verschelde
dac2a7b237
Merge pull request #34032 from aaronfranke/approx-docs-hey-that-rhymes
Add docs for is_equal_approx on structures
2019-12-01 00:12:57 +01:00
Aaron Franke
3231fca934
Add docs for is_equal_approx on structures 2019-11-30 16:52:27 -05:00
Rémi Verschelde
2e76c7ce19
Merge pull request #34029 from nekomatata/create-physical-skeleton-error
Fixed error when creating physical skeleton
2019-11-30 22:13:38 +01:00
Rémi Verschelde
ea8a30a5ea
Merge pull request #34024 from miere43/script-docs-typo-fix
Fixed typo in docs for Script and GDScript classes
2019-11-30 22:08:29 +01:00
PouleyKetchoupp
f0fdd7de80 Fixed error when creating physical skeleton
An error was systematically triggered on the root bone, when trying to access its parent (the return value wasn't used in this case anyway).

Fixes #23920
2019-11-30 20:27:12 +01:00
miere43
d747c61187 Fixed typo in docs for Script and GDScript classes ("exends" -> "extends") 2019-11-30 21:16:11 +03:00
PouleyKetchoupp
b44e0d60c7 Update transform property in the inspector when changing translation/rotation/scale 2019-11-30 17:16:19 +01:00
Rémi Verschelde
5bf04d16f0
Merge pull request #34011 from nekomatata/state-machine-travel-on-ready
Handle state machine travel before the start node is processed
2019-11-30 17:05:17 +01:00
Rémi Verschelde
fc034be033
Merge pull request #34014 from KoBeWi/like_2d_like_3d
Port Path2D changes to 3D
2019-11-30 14:50:53 +01:00
Tomasz Chabora
9276684e95 Port Path2D changes to 3D 2019-11-30 12:43:34 +01:00
Rémi Verschelde
cde6775e11
Merge pull request #34012 from KoBeWi/useless
Remove unnecessary bounded_offset from PathFollow2D
2019-11-30 11:19:26 +01:00
Rémi Verschelde
52e3944846
Merge pull request #34009 from flyingpimonster/gridmap-docs
Docs: GridMap and MeshLibrary
2019-11-30 11:13:42 +01:00
Tomasz Chabora
7e6fa6c7a8 Remove unnecessary bounded_offset from PathFollow2D 2019-11-30 03:16:33 +01:00
PouleyKetchoupp
598d769804 Handle state machine travel before the start node is processed
This change allows travel() to be called on AnimationNodeStateMachinePlayback during _ready(), before the start node has been processed and the state machine is considered playing.
2019-11-30 02:41:40 +01:00
James Westman
7ef16ca136 Docs: GridMap and MeshLibrary
The only methods left to document are resource_changed, set_clip, and
the methods dealing with baked meshes.
2019-11-29 18:21:34 -06:00
Tomasz Chabora
f4a1a79d01 Don't try to initialize empty NativeLibrary 2019-11-29 21:10:20 +01:00
Rémi Verschelde
1b40a95b6f i18n: Sync translations with Weblate 2019-11-29 15:51:09 +01:00
Rémi Verschelde
55676b16da makerst: Escape default values using reST markup
Otherwise the docs would complain about values like "godot_"
which reST tries to interpret as an identifier.
2019-11-29 14:25:37 +01:00
PouleyKetchoupp
85a955fc56 Flush remaining messages before quitting the game when loading fails
This change allows error messages to be printed in the editor debugger when the game fails on load, instead of displaying them in the console terminal only.
2019-11-29 14:01:56 +01:00
Rémi Verschelde
fa0e682027
Merge pull request #33982 from neikeq/issue-29349
Mono/C#: Add option to export assemblies outside of PCK
2019-11-29 11:37:18 +01:00
Rémi Verschelde
266e3e53c8
Merge pull request #33990 from akien-mga/sdl-gamecontrollerdb
Sync controller mappings DB with SDL2 community repo
2019-11-29 11:11:18 +01:00
Rémi Verschelde
502a667070 Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@d329cb6a71.
2019-11-29 10:56:55 +01:00
Rémi Verschelde
f82539944b
Merge pull request #33986 from nekomatata/gles2-conditional-cleaning
Removed duplicated conditional in GLES2
2019-11-29 09:39:47 +01:00
Rémi Verschelde
c9989c5390
Merge pull request #33983 from neikeq/issue-32980
Mono/C#: Fix crash on exported games that don't use C#
2019-11-29 08:34:16 +01:00
PouleyKetchoupp
f5e81b894a Removed duplicated conditional in GLES2 2019-11-29 06:32:55 +01:00
Ignacio Etcheverry
85d8c42763 Mono/C#: Fix crash on exported games that don't use C# 2019-11-29 01:35:46 +01:00
Ignacio Etcheverry
66de28eda8 Mono/C#: Add option to export assemblies outside of PCK
When using this options, assemblies will be saved in the Assemblies folder of the  data directory: 'data_AppName/Assemblies/'.
2019-11-29 00:36:05 +01:00
Rémi Verschelde
7735af7e76
Merge pull request #33964 from aaronfranke/canvas-in-spatial-crash
Don't cast item to Spatial when checking if it's locked
2019-11-28 12:05:07 +01:00
Aaron Franke
4af218f9e3
Don't cast item to Spatial when checking if it's locked
Not a necessary cast, and causes a crash any time it's not a Spatial.
2019-11-28 05:34:54 -05:00
Rémi Verschelde
0e6e64c9e9
Merge pull request #32854 from cooperra/fix-wireless-adb-debugging
Fix Android deploy with Remote Debug or Network FS over Wi-Fi
2019-11-28 10:02:55 +01:00
Rémi Verschelde
cf8ee15986
Merge pull request #33955 from Calinou/document-warning-unused-exclude
Document how to bypass the unused argument/variable warning in message
2019-11-28 09:45:45 +01:00