Skip to content

Commit

Permalink
fixup! OSLShader : Fix type for PxrDisplace
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Mar 3, 2025
1 parent 5aee556 commit 78261b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GafferOSL/OSLShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ void OSLShader::loadShader( const std::string &shaderName, bool keepExistingValu

m_metadata = nullptr;
namePlug->source<StringPlug>()->setValue( shaderName );
auto typeIt = g_typeOverrides.find( std::filesystem::path( shaderName ).stem() );
auto typeIt = g_typeOverrides.find( std::filesystem::path( shaderName ).stem().string() );
typePlug->source<StringPlug>()->setValue(
typeIt != g_typeOverrides.end() ?
typeIt->second :
Expand Down

0 comments on commit 78261b5

Please sign in to comment.