Skip to content

Commit

Permalink
Fixed segfault in scanning for UVsets (oddly this wasn't a problem on…
Browse files Browse the repository at this point in the history
… my main worstation but other people and my laptop triggered it in debug). Fixes #49
  • Loading branch information
boberfly committed Apr 28, 2020
1 parent 73cadee commit bd45b32
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/GafferCycles/IECoreCyclesPreview/MeshAlgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,17 @@ ccl::Mesh *convertCommon( const IECoreScene::MeshPrimitive *mesh )
( data->getInterpretation() == GeometricData::Numeric ) )
{
uvsets[it->first] = it->second;
variablesToConvert.erase( it );
it = variablesToConvert.erase( it );
}
else
{
++it;
}
}
++it;
else
{
++it;
}
}
// Find the best candidate for the first UVset.
int rank = -1;
Expand Down

0 comments on commit bd45b32

Please sign in to comment.