Cycles: Fixes for recent refactor

- add_vertex() can be called from split_vertex() which does not guarantee
  to have properly pre-allocate arrays.

- Need to check whether Cycles is compiled with OSL in XML reader.
This commit is contained in:
Sergey Sharybin
2016-05-31 15:32:31 +02:00
parent 230cf2e46d
commit d5220d23f9
3 changed files with 9 additions and 1 deletions

View File

@@ -156,6 +156,7 @@ public:
void reserve_curves(int numcurves, int numkeys);
void clear();
void add_vertex(float3 P);
void add_vertex_slow(float3 P);
void add_triangle(int v0, int v1, int v2, int shader, bool smooth, bool forms_quad = false);
void add_curve_key(float3 loc, float radius);
void add_curve(int first_key, int shader);