浏览代码

Make the master preview dirty output nodes in subgraphs

/main
Jens Holm 6 年前
当前提交
f7274b83
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8
      com.unity.shadergraph/Editor/Drawing/Inspector/MasterPreviewView.cs

8
com.unity.shadergraph/Editor/Drawing/Inspector/MasterPreviewView.cs


var amn = masterNode as AbstractMaterialNode;
if (amn != null)
amn.Dirty(scope);
// If currently editing a subgraph, dirty the output node rather than master node.
if (m_Graph is SubGraph)
{
var subgraph = m_Graph as SubGraph;
if (subgraph != null && subgraph.outputNode != null)
subgraph.outputNode.Dirty(scope);
}
}
void OnPreviewChanged()

正在加载...
取消
保存