From cad3406c812bf2b2c8d2994a68db0e9a68071268 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 14 Jul 2013 12:51:41 +0000 Subject: Fix some unnecessary memory allocation slowness in cycles mesh export. --- intern/cycles/render/mesh.h | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/render/mesh.h') diff --git a/intern/cycles/render/mesh.h b/intern/cycles/render/mesh.h index b74c41f6453..a7703f7cabc 100644 --- a/intern/cycles/render/mesh.h +++ b/intern/cycles/render/mesh.h @@ -110,6 +110,7 @@ public: void reserve(int numverts, int numfaces, int numcurves, int numcurvekeys); void clear(); + void set_triangle(int i, int v0, int v1, int v2, int shader, bool smooth); void add_triangle(int v0, int v1, int v2, int shader, bool smooth); void add_curve_key(float3 loc, float radius); void add_curve(int first_key, int num_keys, int shader); -- cgit v1.2.3