We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 356ed76 commit e563fb7Copy full SHA for e563fb7
src/IECoreScene/ShaderNetwork.cpp
@@ -447,6 +447,16 @@ class ShaderNetwork::Implementation
447
h.append( 0 );
448
}
449
450
+
451
+ if( m_parmsNeedingSubstitution.size() && !m_neededSubstitutions.size() )
452
+ {
453
+ // If we don't rely on any attributes, but do require substitutions ( for example,
454
+ // because some parameters have escaped substitutions, and need the escape characters
455
+ // removed ), then our hash won't vary with the attributes, but we do still need to
456
+ // do something to the hash, so that Gaffer won't skip running substitutions on this
457
+ // shader.
458
+ h.append( true );
459
+ }
460
461
462
void applySubstitutions( const CompoundObject *attributes )
0 commit comments