evas: CID 1323091

Summary:
@fix CID 1323091 for Coverity

Reviewers: cedric, Hermet, raster

Subscribers: cedric, artem.popov

Differential Revision: https://phab.enlightenment.org/D3037

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
perepelits.m 2015-09-09 00:07:45 +02:00 committed by Cedric BAIL
parent 66d53e5968
commit a7679b60ac
1 changed files with 5 additions and 2 deletions

View File

@ -1048,8 +1048,11 @@ evas_canvas3d_node_mesh_collect(Evas_Canvas3D_Node *node, void *data)
{
mesh_pd = eo_data_scope_get(mesh, MY_CLASS);
f = evas_canvas3d_mesh_frame_find(mesh_pd, 0);
if (f == NULL)
ERR("Not existing mesh frame.");
if (!f)
{
ERR("Not existing mesh frame.");
continue;
}
float *tangent_data = (float *)f->vertices[EVAS_CANVAS3D_VERTEX_ATTRIB_TANGENT].data;
if (!tangent_data && ((mesh_pd->shade_mode == EVAS_CANVAS3D_SHADE_MODE_NORMAL_MAP) ||