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:
parent
a60896869e
commit
aefedb73fc
8 changed files with 74 additions and 15 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue