forked from enlightenment/efl
evas/evas3d: exceptional handling if a camera doesn't set to a scene.
This commit is contained in:
parent
0fdd06c73b
commit
fac0ab79b0
|
@ -2508,6 +2508,11 @@ _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->camera_node)
|
||||
{
|
||||
WRN("Camera has not been set to scene(%p)", scene);
|
||||
return;
|
||||
}
|
||||
|
||||
e = eo_data_scope_get(eo_e, EVAS_CLASS);
|
||||
|
||||
|
|
Loading…
Reference in New Issue