mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-17 19:50:06 +00:00
Fix build warning in Far::PatchTables::Interpolate<>() method
This commit is contained in:
parent
b599bbc0cc
commit
49848139f4
@ -926,7 +926,7 @@ PatchTables::InterpolateGregoryPatch(StencilTables const * basisStencils,
|
||||
}
|
||||
}
|
||||
|
||||
// Interpolates the limit position of a parametric location on a patch
|
||||
// Interpolates the limit position of a parametric location on a bilinear patch
|
||||
template <class T, class U>
|
||||
inline void
|
||||
PatchTables::Interpolate(PatchHandle const & handle, float s, float t,
|
||||
@ -936,6 +936,7 @@ PatchTables::Interpolate(PatchHandle const & handle, float s, float t,
|
||||
|
||||
PatchTables::PatchArray const & parray =
|
||||
_patchArrays[handle.patchArrayIdx];
|
||||
assert(parray.GetDescriptor().GetType()==QUADS);
|
||||
|
||||
Index const * cvs =
|
||||
&_patches[parray.GetVertIndex() + handle.vertexOffset];
|
||||
@ -945,8 +946,6 @@ PatchTables::Interpolate(PatchHandle const & handle, float s, float t,
|
||||
|
||||
bits.Normalize(s,t);
|
||||
|
||||
Type ptype = parray.GetDescriptor().GetType();
|
||||
assert(ptype==QUADS);
|
||||
|
||||
dst.Clear();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user