aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ephysics/src/lib
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/src/lib
parentc5667e38029a6f3d6377f9a26b2f2dcbac5a1d6b (diff)
downloadefl-8758e77f79e51886d5421245efd1939ab8521826.tar.gz
efl-8758e77f79e51886d5421245efd1939ab8521826.tar.xz
efl-8758e77f79e51886d5421245efd1939ab8521826.zip
ephysics: handle evas object visibitily on default update
SVN revision: 80624
Diffstat (limited to 'legacy/ephysics/src/lib')
-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 4ff432e6b..8945f58ab 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
return;
}
}
+ else
+ evas_object_show(obj);
if ((body->light_apply) ||
(ephysics_world_light_all_bodies_get(body->world)))
@@ -1574,6 +1576,8 @@ _ephysics_body_evas_object_update(EPhysics_Body *body, Evas_Object *evas_obj)
if (body->type != EPHYSICS_BODY_TYPE_RIGID)
{
+ if (!body->back_face_culling)
+ evas_object_show(body->evas_obj);
_ephysics_body_soft_body_slices_apply(body, body->evas_obj,
body->default_face->slices);
return;
@@ -1626,6 +1630,11 @@ _ephysics_body_evas_object_default_update(EPhysics_Body *body)
}
else if (body->type == EPHYSICS_BODY_TYPE_SOFT)
_ephysics_body_soft_body_update(body);
+
+ if (body->evas_obj)
+ evas_object_hide(body->evas_obj);
+
+ return;
}
if (!body->evas_obj)