Cycles: Fixes for recent refactor
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 31 May 2016 13:32:31 +0000 (15:32 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 31 May 2016 13:32:31 +0000 (15:32 +0200)
commitd5220d23f976d14350d5d76f7cb97d4fef8e977d
treef8c678ac9c051e1377203333256135ada66cb0de
parent230cf2e46de2dea9303159a93ac00596c2918470
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.
intern/cycles/app/cycles_xml.cpp
intern/cycles/render/mesh.cpp
intern/cycles/render/mesh.h