Fixed build breakage in mayaPolySmooth.

Make sure to maintain constness to fix the build break for gcc.
This commit is contained in:
George ElKoura 2015-05-30 16:16:35 -07:00
parent 997d6035b9
commit fbfc657d03

View File

@ -659,7 +659,7 @@ MayaPolySmooth::compute( const MPlug& plug, MDataBlock& data ) {
std::vector<Vertex> refinedVerts(
refiner->GetNumVerticesTotal() - refiner->GetLevel(0).GetNumVertices());
Vertex * srcVerts = controlVerts;
Vertex const * srcVerts = controlVerts;
Vertex * dstVerts = &refinedVerts[0];
for (int level = 1; level <= subdivisionLevel; ++level) {
OpenSubdiv::Far::PrimvarRefiner(*refiner).Interpolate(level, srcVerts, dstVerts);