diff options
author | damarindra <damarind@gmail.com> | 2017-09-24 15:55:45 +0700 |
---|---|---|
committer | damarindra <damarind@gmail.com> | 2017-09-24 15:55:45 +0700 |
commit | b786e7877ba176c0cd5d8289abd8b60276dde35b (patch) | |
tree | 289927dde7429f9a2abd4b4f4c17e2398bd5a290 /scene/3d | |
parent | df5dab738a9aa35b75e439732cfc4d23e16789cd (diff) |
Fix: CollisionObject shape owner indexing is inconsistent
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/collision_object.cpp | 2 |
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; } |