ephysics: don't try to lock on internal delete

SVN revision: 77464
This commit is contained in:
Bruno Dilly 2012-10-04 22:39:53 +00:00
parent 7fe038a1c8
commit 7d994cc8e6
1 changed files with 3 additions and 1 deletions

View File

@ -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;