Skip to content

Commit

Permalink
Clarify input name
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Sep 12, 2023
1 parent 1ea6908 commit ebbb765
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/MaterialXRender/Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ void MeshStream::transform(const Matrix44 &matrix)
}
}

MeshStreamPtr Mesh::getStream(const string& name, bool returnFallbackStream)
MeshStreamPtr Mesh::getStream(const string& name, bool allowFallback)
{
for (const auto& stream : _streams)
{
Expand All @@ -358,7 +358,7 @@ MeshStreamPtr Mesh::getStream(const string& name, bool returnFallbackStream)
return stream;
}
}
if (returnFallbackStream)
if (allowFallback)
{
const std::string POSITION_NAME("i_" + MeshStream::POSITION_ATTRIBUTE);
MeshStreamPtr positionStream = getStream(POSITION_NAME, false);
Expand Down Expand Up @@ -444,10 +444,10 @@ MeshStreamPtr Mesh::getStream(const string& name, bool returnFallbackStream)
return MeshStreamPtr();
}

MeshStreamPtr Mesh::getStream(const string& type, unsigned int index, bool returnFallbackStream)
MeshStreamPtr Mesh::getStream(const string& type, unsigned int index, bool allowFallback)
{
const string streamName = "i_" + type + "_" + std::to_string(index);
MeshStreamPtr foundStream = getStream(streamName, returnFallbackStream);
MeshStreamPtr foundStream = getStream(streamName, allowFallback);
return foundStream;
}

Expand Down

0 comments on commit ebbb765

Please sign in to comment.