Skip to content

Commit

Permalink
Fix in another place too
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed Dec 15, 2021
1 parent a310bab commit 7d27e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/src/ColladaLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2237,7 +2237,7 @@ void ColladaLoader::Implementation::LoadPolylist(
input.vertexIndex = daeVertIndex;
input.mappedIndex = newVertIndex;
}
if (!inputs[NORMAL].empty())
if (!inputs[NORMAL].empty() && hasNormals)
{
unsigned int inputRemappedNormalIndex =
values[*inputs[NORMAL].begin()];
Expand Down

0 comments on commit 7d27e30

Please sign in to comment.