ephysics: don't allow a body to be scaled to 0 in any

axis

In this case it will be considered inactive and things
won't work as expected.



SVN revision: 79789
This commit is contained in:
Bruno Dilly 2012-11-28 21:47:30 +00:00
parent a4cfabdc2a
commit 704173e539
1 changed files with 3 additions and 3 deletions

View File

@ -1050,9 +1050,9 @@ _ephysics_body_geometry_set(EPhysics_Body *body, Evas_Coord x, Evas_Coord y, Eva
mx = (x + w * body->cm.x) / rate;
my = (height - (y + h * body->cm.y)) / rate;
mz = (z + d * body->cm.z) / rate;
sx = w / rate;
sy = h / rate;
sz = d / rate;
sx = (w <= 0) ? 1 : w / rate;
sy = (h <= 0) ? 1 : h / rate;
sz = (d <= 0) ? 1 : d / rate;
trans = _ephysics_body_transform_get(body);
trans.setOrigin(btVector3(mx, my, mz));