EPhysics: fix updating bodies with evas object without

geometry

If a evas object associated to a body don't have w or h, don't
try to apply map / rotation on it.



SVN revision: 75229
This commit is contained in:
Bruno Dilly 2012-08-13 22:24:36 +00:00
parent 1de398ce60
commit 3c27a0288d
1 changed files with 7 additions and 0 deletions

View File

@ -341,6 +341,13 @@ _ephysics_body_evas_object_default_update(EPhysics_Body *body)
evas_object_move(body->evas_obj, x, y);
if ((!w) || (!h))
{
DBG("Evas object with no geometry: %p, w=%i h=%i", body->evas_obj,
w, h);
return;
}
rot = - trans.getRotation().getAngle() * RAD_TO_DEG *
trans.getRotation().getAxis().getZ();