evas/evas3d: exceptional handling if a camera doesn't set to a scene.

This commit is contained in:
ChunEon Park 2014-04-30 20:20:44 +09:00
parent 0fdd06c73b
commit fac0ab79b0
1 changed files with 6 additions and 1 deletions

View File

@ -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);