Update collision shapes data on tree entered

This is needed because the final startup values for shapes may change between parenting and entering the scene tree. For instance, if the collision shape belongs to a inherited scene.

Fixes #13835.
This commit is contained in:
Pedro J. Estébanez 2018-01-11 21:05:42 +01:00
parent a60896869e
commit aefedb73fc
8 changed files with 74 additions and 15 deletions

View file

@ -47,6 +47,8 @@ class CollisionShape2D : public Node2D {
bool disabled;
bool one_way_collision;
void _update_in_shape_owner(bool p_xform_only = false);
protected:
void _notification(int p_what);
static void _bind_methods();