ephysics: don't try to lock on internal delete
SVN revision: 77464
This commit is contained in:
parent
7fe038a1c8
commit
7d994cc8e6
|
@ -808,7 +808,9 @@ _ephysics_body_soft_add(EPhysics_World *world, btCollisionShape *collision_shape
|
|||
body = _ephysics_body_add(world, collision_shape, "soft box", 0.5, 0.5);
|
||||
if (!body)
|
||||
{
|
||||
ephysics_body_del(body);
|
||||
if (body->deleted) return NULL;
|
||||
body->deleted = EINA_TRUE;
|
||||
ephysics_world_body_del(body->world, body);
|
||||
return NULL;
|
||||
}
|
||||
body->soft_body = soft_body;
|
||||
|
|
Loading…
Reference in New Issue