File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
com.unity.shadergraph/Editor/Data/Graphs Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -259,8 +259,11 @@ public bool IsCompatibleWith(MaterialSlot otherSlot)
259259
260260 public bool IsCompatibleStageWith ( MaterialSlot otherSlot )
261261 {
262- var candidateStage = otherSlot . stageCapability ;
263- return stageCapability == ShaderStageCapability . All || candidateStage == stageCapability ;
262+ var startStage = otherSlot . stageCapability ;
263+ if ( startStage == ShaderStageCapability . All )
264+ startStage = NodeUtils . GetEffectiveShaderStageCapability ( otherSlot , true )
265+ & NodeUtils . GetEffectiveShaderStageCapability ( otherSlot , false ) ;
266+ return startStage == ShaderStageCapability . All || stageCapability == ShaderStageCapability . All || stageCapability == startStage ;
264267 }
265268
266269 public string GetDefaultValue ( GenerationMode generationMode , ConcretePrecision concretePrecision )
You can’t perform that action at this time.
0 commit comments