forked from enlightenment/efl
EPhysics: do not call update deleted object
If a body has been marked for deletion do not updated it neither call its BODY_UPDATE callbacks. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 78474
This commit is contained in:
parent
ea213c2ea4
commit
755a182add
|
@ -1168,7 +1168,7 @@ ephysics_body_evas_object_update_select(EPhysics_Body *body)
|
|||
{
|
||||
Eina_Bool callback_called = EINA_FALSE;
|
||||
|
||||
if (!body)
|
||||
if (!body || body->deleted)
|
||||
return;
|
||||
|
||||
callback_called = _ephysics_body_event_callback_call(
|
||||
|
|
Loading…
Reference in New Issue