summaryrefslogtreecommitdiff
path: root/scene/resources/capsule_shape.cpp
diff options
context:
space:
mode:
authoryakun.zhang <Raphael10241024@gmail.com>2019-03-19 11:53:37 +0800
committerRaphaelHunter <raphael10241024@gmail.com>2019-04-11 23:31:55 +0800
commite5f531620e69ef682353e4d93c8ddd6cb43921ba (patch)
tree79a5aaafa7aff111ae3db1206e8d37a5912e278d /scene/resources/capsule_shape.cpp
parent5772f60f960ee8c396574f0c6f94def18bb210c7 (diff)
Fix collider debug shape didn't changes with collider size changes
Diffstat (limited to 'scene/resources/capsule_shape.cpp')
-rw-r--r--scene/resources/capsule_shape.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/capsule_shape.cpp b/scene/resources/capsule_shape.cpp
index 3f7bf1e0ec..669b261bfe 100644
--- a/scene/resources/capsule_shape.cpp
+++ b/scene/resources/capsule_shape.cpp
@@ -75,6 +75,7 @@ void CapsuleShape::_update_shape() {
d["radius"] = radius;
d["height"] = height;
PhysicsServer::get_singleton()->shape_set_data(get_shape(), d);
+ Shape::_update_shape();
}
void CapsuleShape::set_radius(float p_radius) {