godot/scene
Milan Davidovic c12ce2b4dd Prevent move_and_slide() to generate an error.
When moving KinematicBody2D from one scene to another and not freeing
the old scene, the first call to move_and_slide() in the new scene will
generate an error because KinematicBody2D keeps internaly a
RID on_floor_body of a body resource in the old scene which no more has
a space assigned.

To fix this, on_floor_body is set to empty RID in response to
NOTIFICATION_ENTER_TREE notification of KinematicBody2D and
KinematicBody. Also all other data related to move_and_slide() is reset:
floor, ceiling, wall flags, colliders vector, floor_velocity.

This fixes #31416.
2019-08-26 15:10:15 +02:00
..
2d Prevent move_and_slide() to generate an error. 2019-08-26 15:10:15 +02:00
3d Prevent move_and_slide() to generate an error. 2019-08-26 15:10:15 +02:00
animation Remove redundant author doc comments 2019-08-12 04:26:38 -05:00
audio Some code changed with Clang-Tidy 2019-06-26 15:08:25 +02:00
gui Keep syntax highlighting on TextEdit in readonly mode 2019-08-18 14:00:12 -03:00
main Improve the scene tree signals/groups tooltip 2019-08-17 14:20:16 +02:00
resources Merge pull request #31453 from Chaosus/vs_code_preview 2019-08-18 17:32:49 +02:00
register_scene_types.cpp Added global expressions to visual shaders 2019-08-18 08:49:56 +03:00
register_scene_types.h Remove redundant author doc comments 2019-08-12 04:26:38 -05:00
scene_string_names.cpp -Fixes to undo redo to avoid crash, closes #24251 2019-02-14 10:22:34 -03:00
scene_string_names.h -Fixes to undo redo to avoid crash, closes #24251 2019-02-14 10:22:34 -03:00
SCsub Move Penner easing equations to thirdparty/misc 2018-09-28 16:01:26 +02:00