diff options
author | yakun.zhang <Raphael10241024@gmail.com> | 2019-03-19 11:53:37 +0800 |
---|---|---|
committer | RaphaelHunter <raphael10241024@gmail.com> | 2019-04-11 23:31:55 +0800 |
commit | e5f531620e69ef682353e4d93c8ddd6cb43921ba (patch) | |
tree | 79a5aaafa7aff111ae3db1206e8d37a5912e278d /scene/3d/collision_shape.h | |
parent | 5772f60f960ee8c396574f0c6f94def18bb210c7 (diff) |
Fix collider debug shape didn't changes with collider size changes
Diffstat (limited to 'scene/3d/collision_shape.h')
-rw-r--r-- | scene/3d/collision_shape.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/3d/collision_shape.h b/scene/3d/collision_shape.h index 0c8e383a7f..98427b8590 100644 --- a/scene/3d/collision_shape.h +++ b/scene/3d/collision_shape.h @@ -45,12 +45,14 @@ class CollisionShape : public Spatial { CollisionObject *parent; Node *debug_shape; + bool debug_shape_dirty; void resource_changed(RES res); bool disabled; protected: - void _create_debug_shape(); + void _update_debug_shape(); + void _shape_changed(); void _update_in_shape_owner(bool p_xform_only = false); |