Skip to content

Commit

Permalink
We don't need to prefix OSL inputs with "param_" for Cycles.
Browse files Browse the repository at this point in the history
  • Loading branch information
boberfly committed Feb 15, 2020
1 parent 2bf952a commit bbbd3f5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/GafferCycles/IECoreCyclesPreview/ShaderNetworkAlgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,6 @@ ccl::ShaderNode *convertWalk( const ShaderNetwork::Parameter &outputParameter, c
// We needed to change any "." found in the socket input names to
// "__", revert that change here.
string parameterName = boost::replace_first_copy( connection.destination.name.string(), "__", "." );
if( isOSLShader )
{
parameterName = "param_" + connection.destination.name.string();
}

InternedString sourceName = connection.source.name;
const IECoreScene::Shader *sourceShader = shaderNetwork->getShader( connection.source.shader );
Expand Down

0 comments on commit bbbd3f5

Please sign in to comment.