summaryrefslogtreecommitdiff
path: root/legacy/ephysics
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-12-10 21:58:06 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-12-10 21:58:06 +0000
commit8758e77f79e51886d5421245efd1939ab8521826 (patch)
tree439c4aaff8938b3ad3d874f5f7dfb5355fc5a1d5 /legacy/ephysics
parentc5667e38029a6f3d6377f9a26b2f2dcbac5a1d6b (diff)
ephysics: handle evas object visibitily on default update
SVN revision: 80624
Diffstat (limited to 'legacy/ephysics')
-rw-r--r--legacy/ephysics/src/lib/ephysics_body.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp
index 4ff432e6bf..8945f58ab3 100644
--- a/legacy/ephysics/src/lib/ephysics_body.cpp
+++ b/legacy/ephysics/src/lib/ephysics_body.cpp
@@ -1311,6 +1311,8 @@ _ephysics_body_evas_obj_map_apply(EPhysics_Body *body, Evas_Map *map, Evas_Objec
1311 return; 1311 return;
1312 } 1312 }
1313 } 1313 }
1314 else
1315 evas_object_show(obj);
1314 1316
1315 if ((body->light_apply) || 1317 if ((body->light_apply) ||
1316 (ephysics_world_light_all_bodies_get(body->world))) 1318 (ephysics_world_light_all_bodies_get(body->world)))
@@ -1574,6 +1576,8 @@ _ephysics_body_evas_object_update(EPhysics_Body *body, Evas_Object *evas_obj)
1574 1576
1575 if (body->type != EPHYSICS_BODY_TYPE_RIGID) 1577 if (body->type != EPHYSICS_BODY_TYPE_RIGID)
1576 { 1578 {
1579 if (!body->back_face_culling)
1580 evas_object_show(body->evas_obj);
1577 _ephysics_body_soft_body_slices_apply(body, body->evas_obj, 1581 _ephysics_body_soft_body_slices_apply(body, body->evas_obj,
1578 body->default_face->slices); 1582 body->default_face->slices);
1579 return; 1583 return;
@@ -1626,6 +1630,11 @@ _ephysics_body_evas_object_default_update(EPhysics_Body *body)
1626 } 1630 }
1627 else if (body->type == EPHYSICS_BODY_TYPE_SOFT) 1631 else if (body->type == EPHYSICS_BODY_TYPE_SOFT)
1628 _ephysics_body_soft_body_update(body); 1632 _ephysics_body_soft_body_update(body);
1633
1634 if (body->evas_obj)
1635 evas_object_hide(body->evas_obj);
1636
1637 return;
1629 } 1638 }
1630 1639
1631 if (!body->evas_obj) 1640 if (!body->evas_obj)