From fac0ab79b0dfdb5af4947fdc7860fc8656501551 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Wed, 30 Apr 2014 20:20:44 +0900 Subject: [PATCH] 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 062da1c288..7ea684a43b 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);