mirror of
https://github.com/godotengine/godot
synced 2024-09-05 09:08:28 +00:00
Fix: CollisionObject shape owner indexing is inconsistent
This commit is contained in:
parent
df5dab738a
commit
b786e7877b
|
@ -82,7 +82,7 @@ uint32_t CollisionObject2D::create_shape_owner(Object *p_owner) {
|
|||
uint32_t id;
|
||||
|
||||
if (shapes.size() == 0) {
|
||||
id = 1;
|
||||
id = 0;
|
||||
} else {
|
||||
id = shapes.back()->key() + 1;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue