summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_canvas3d_mesh.c
diff options
context:
space:
mode:
authorperepelits.m <perepelits.m@samsung.com>2015-10-04 16:37:17 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-10-04 16:37:28 +0200
commit0dd60ced443f087a142a8fd0f5664af732a9b029 (patch)
treec12eb4db15b2e56866abc0f7e27a8a49d8422103 /src/lib/evas/canvas/evas_canvas3d_mesh.c
parent4290567fd67cee39a3e36fddf0dc526190250724 (diff)
evas-3d: fix primitives
Summary: There were warnings after adding primitive in the same frame more then once, the check was added to avoid it @fix Reviewers: cedric, raster, Hermet Subscribers: cedric, artem.popov Differential Revision: https://phab.enlightenment.org/D3090 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_canvas3d_mesh.c')
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_mesh.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_canvas3d_mesh.c b/src/lib/evas/canvas/evas_canvas3d_mesh.c
index 892ecd1..e7bc091 100644
--- a/src/lib/evas/canvas/evas_canvas3d_mesh.c
+++ b/src/lib/evas/canvas/evas_canvas3d_mesh.c
@@ -306,6 +306,17 @@ _evas_canvas3d_mesh_vertex_count_get(Eo *obj EINA_UNUSED, Evas_Canvas3D_Mesh_Dat
306 return pd->vertex_count; 306 return pd->vertex_count;
307} 307}
308 308
309EOLIAN static Eina_Bool
310_evas_canvas3d_mesh_frame_exist(Eo *obj EINA_UNUSED, Evas_Canvas3D_Mesh_Data *pd, int frame)
311{
312 Evas_Canvas3D_Mesh_Frame *f = evas_canvas3d_mesh_frame_find(pd, frame);
313
314 if (f)
315 return EINA_TRUE;
316
317 return EINA_FALSE;
318}
319
309EOLIAN static void 320EOLIAN static void
310_evas_canvas3d_mesh_frame_add(Eo *obj, Evas_Canvas3D_Mesh_Data *pd, int frame) 321_evas_canvas3d_mesh_frame_add(Eo *obj, Evas_Canvas3D_Mesh_Data *pd, int frame)
311{ 322{