mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-24 04:20:21 +00:00
Fixed VS2010 warnings/errors.
This commit is contained in:
parent
fdc3d11852
commit
570ebf7156
@ -148,7 +148,7 @@ blenderStyleTessellate(char *inputFile, char *outputFile, std::string *errorMess
|
||||
|
||||
// Push the vertex data
|
||||
adaptiveEvaluator.SetCoarsePositions(
|
||||
&(pointPositions[0]), pointPositions.size(), errorMessage);
|
||||
&(pointPositions[0]), (int) pointPositions.size(), errorMessage);
|
||||
|
||||
// Refine with one thread
|
||||
if (not adaptiveEvaluator.Refine(1, errorMessage)) {
|
||||
|
@ -329,7 +329,7 @@ PxOsdUtilAdaptiveEvaluator::GetRefinedTopology(
|
||||
}
|
||||
}
|
||||
|
||||
int startingPositionIndex = positions->size();
|
||||
int startingPositionIndex = (int) positions->size();
|
||||
int currentGridSize = gridSize;
|
||||
|
||||
// Subfaces have a smaller gridsize so tessellation lines up.
|
||||
@ -377,7 +377,7 @@ PxOsdUtilAdaptiveEvaluator::GetRefinedTopology(
|
||||
} // while (not done)
|
||||
|
||||
out->name = GetTopology().name + "_refined";
|
||||
out->numVertices = positions->size()/3;
|
||||
out->numVertices = (int) positions->size()/3;
|
||||
out->refinementLevel = GetTopology().refinementLevel;
|
||||
|
||||
return out->IsValid(errorMessage);
|
||||
|
Loading…
Reference in New Issue
Block a user