浏览代码

MaterialNodeDrawer might have been not cleaning up old stuff if the dataProvider was null

/main
Peter Bay Bastian 8 年前
当前提交
da353adb
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Drawer/MaterialNodeDrawer.cs

5
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Drawer/MaterialNodeDrawer.cs


name = "preview", // for USS&Flexbox
pickingMode = PickingMode.Ignore,
};
AddChild(m_PreviewContainer);
m_currentPreviewData = new List<NodePreviewDrawData>();
}

}
}
AddChild(m_PreviewContainer);
}
public override void OnDataChanged()

var nodeData = dataProvider as MaterialNodeDrawData;
if (nodeData == null)
{
CreateContainers();
m_PreviewContainer.ClearChildren();
m_currentPreviewData.Clear();
return;
}

正在加载...
取消
保存