hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fac0ab79b0dfdb5af4947fdc7860fc8656501551

commit fac0ab79b0dfdb5af4947fdc7860fc8656501551
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Wed Apr 30 20:20:44 2014 +0900

    evas/evas3d: exceptional handling if a camera doesn't set to a scene.
---
 src/lib/evas/canvas/evas_object_image.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_object_image.c 
b/src/lib/evas/canvas/evas_object_image.c
index 062da1c..7ea684a 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -2507,7 +2507,12 @@ _3d_render(Evas *eo_e, Evas_Object *eo_obj EINA_UNUSED,
 
    pd_scene = eo_data_scope_get(scene, EVAS_3D_SCENE_CLASS);
 
-   if((pd_scene->w == 0) || (pd_scene->h == 0)) return;
+   if ((pd_scene->w == 0) || (pd_scene->h == 0)) return;
+   if (!pd_scene->camera_node)
+     {
+        WRN("Camera has not been set to scene(%p)", scene);
+        return;
+     }
 
    e = eo_data_scope_get(eo_e, EVAS_CLASS);
 

-- 


Reply via email to