summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authordamarindra <damarind@gmail.com>2017-09-24 15:55:45 +0700
committerdamarindra <damarind@gmail.com>2017-09-24 15:55:45 +0700
commitb786e7877ba176c0cd5d8289abd8b60276dde35b (patch)
tree289927dde7429f9a2abd4b4f4c17e2398bd5a290 /scene/3d
parentdf5dab738a9aa35b75e439732cfc4d23e16789cd (diff)
Fix: CollisionObject shape owner indexing is inconsistent
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/collision_object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/collision_object.cpp b/scene/3d/collision_object.cpp
index 1c0633fba7..7b4770e435 100644
--- a/scene/3d/collision_object.cpp
+++ b/scene/3d/collision_object.cpp
@@ -161,7 +161,7 @@ uint32_t CollisionObject::create_shape_owner(Object *p_owner) {
uint32_t id;
if (shapes.size() == 0) {
- id = 1;
+ id = 0;
} else {
id = shapes.back()->key() + 1;
}