浏览代码

Fix direction on some gradients

/main
Peter Bay Bastian 7 年前
当前提交
0b1c506d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/GraphEditorView.cs

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/GraphEditorView.cs


var sourceSlot = (MaterialSlot)edgeView.output.userData;
if (sourceSlot.valueType == SlotValueType.Dynamic)
{
edgeView.UpdateClasses(targetSlot.concreteValueType, sourceSlot.concreteValueType);
edgeView.UpdateClasses(sourceSlot.concreteValueType, targetSlot.concreteValueType);
var connectedNodeView = edgeView.output.node as MaterialNodeView;
if (connectedNodeView != null && !nodeViews.Contains(connectedNodeView))
{

正在加载...
取消
保存