projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4cfabd
)
ephysics: don't allow a body to be scaled to 0 in any
author
Bruno Dilly
<bdilly@profusion.mobi>
Wed, 28 Nov 2012 21:47:30 +0000
(21:47 +0000)
committer
Bruno Dilly
<bdilly@profusion.mobi>
Wed, 28 Nov 2012 21:47:30 +0000
(21:47 +0000)
axis
In this case it will be considered inactive and things
won't work as expected.
SVN revision: 79789
legacy/ephysics/src/lib/ephysics_body.cpp
patch
|
blob
|
history
diff --git
a/legacy/ephysics/src/lib/ephysics_body.cpp
b/legacy/ephysics/src/lib/ephysics_body.cpp
index a636dc43cd0a5fdc14ff2cbc13de700f07c0e056..78600916d4bac80cc68c7d8234db291e89f17f9a 100644
(file)
--- a/
legacy/ephysics/src/lib/ephysics_body.cpp
+++ b/
legacy/ephysics/src/lib/ephysics_body.cpp
@@
-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));