Skip to content

Commit

Permalink
Merge pull request #5765 from GafferHQ/arnoldWindowsBuildFix
Browse files Browse the repository at this point in the history
Arnold ShaderNetworkAlgo : Fix build on Windows
  • Loading branch information
murraystevenson authored Apr 3, 2024
2 parents 3ba3aae + 1308b4c commit 725ac9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IECoreArnold/ShaderNetworkAlgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ AtNode *convertWalk( const ShaderNetwork::Parameter &outputParameter, const IECo
// then assume it is intended to refer to the default output and
// strip it.
const size_t i = output.find( '.' );
const string name = output.substr( 0, i );
if( !AiNodeEntryLookUpOutput( AiNodeGetNodeEntry( sourceNode ), AtString( name.c_str() ) ) )
const string outputName = output.substr( 0, i );
if( !AiNodeEntryLookUpOutput( AiNodeGetNodeEntry( sourceNode ), AtString( outputName.c_str() ) ) )
{
output.erase( 0, i != string::npos ? i + 1 : string::npos );
}
Expand Down

0 comments on commit 725ac9d

Please sign in to comment.