forked from enlightenment/efl
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:
parent
1de398ce60
commit
3c27a0288d
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue