mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-28 18:51:12 +00:00
Fix sanity check for max value of level in FarMeshFactory::sumList()
Closes #73
This commit is contained in:
parent
07b4c064d0
commit
56d4bbdd3c
@ -187,7 +187,7 @@ template <class T, class U>
|
||||
template <class Type> int
|
||||
FarMeshFactory<T,U>::sumList( std::vector<std::vector<Type> > const & list, int level) {
|
||||
|
||||
level = std::min(level, (int)list.size());
|
||||
level = std::min(level, (int)list.size()-1);
|
||||
int total = 0;
|
||||
for (int i=0; i<=level; ++i)
|
||||
total += (int)list[i].size();
|
||||
|
Loading…
Reference in New Issue
Block a user