summaryrefslogtreecommitdiffstats
path: root/scene/3d/collision_shape.h
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2018-01-11 21:05:42 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2018-01-11 21:08:58 +0100
commitaefedb73fcba789207db4da0d27214eecaf0f078 (patch)
tree6e2b4faa9ac2a228019eff0c2e732395cf5413cc /scene/3d/collision_shape.h
parenta60896869e6c17f674ff25bee87cabb54cd4403d (diff)
downloadredot-engine-aefedb73fcba789207db4da0d27214eecaf0f078.tar.gz
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.
Diffstat (limited to 'scene/3d/collision_shape.h')
-rw-r--r--scene/3d/collision_shape.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/collision_shape.h b/scene/3d/collision_shape.h
index 724a025165..c9c91a5824 100644
--- a/scene/3d/collision_shape.h
+++ b/scene/3d/collision_shape.h
@@ -51,6 +51,8 @@ class CollisionShape : public Spatial {
void _create_debug_shape();
+ void _update_in_shape_owner(bool p_xform_only = false);
+
protected:
void _notification(int p_what);
static void _bind_methods();