diff options
Diffstat (limited to 'intern/opensubdiv/opensubdiv_capi.cc')
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/opensubdiv/opensubdiv_capi.cc b/intern/opensubdiv/opensubdiv_capi.cc index e3bc5891c45..23146fcfc5d 100644 --- a/intern/opensubdiv/opensubdiv_capi.cc +++ b/intern/opensubdiv/opensubdiv_capi.cc @@ -156,14 +156,14 @@ struct OpenSubdiv_GLMesh *openSubdiv_createOsdGLMeshFromTopologyRefiner( */ bits.set(OpenSubdiv::Osd::MeshAdaptive, 0); bits.set(OpenSubdiv::Osd::MeshUseSingleCreasePatch, 0); - bits.set(OpenSubdiv::Osd::MeshInterleaveVarying, 0); + bits.set(OpenSubdiv::Osd::MeshInterleaveVarying, 1); bits.set(OpenSubdiv::Osd::MeshFVarData, 1); bits.set(OpenSubdiv::Osd::MeshEndCapBSplineBasis, 1); // bits.set(Osd::MeshEndCapGregoryBasis, 1); // bits.set(Osd::MeshEndCapLegacyGregory, 1); - const int num_vertex_elements = 6; - const int num_varying_elements = 0; + const int num_vertex_elements = 3; + const int num_varying_elements = 3; GLMeshInterface *mesh = NULL; TopologyRefiner *refiner = (TopologyRefiner*)topology_refiner; |