浏览代码

Fix for serialized selection

/main
Peter Bay Bastian 8 年前
当前提交
5b3b60c7
共有 2 个文件被更改,包括 2 次插入13 次删除
  1. 3
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/SerializableGraphView.cs
  2. 12
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Manipulators/NodeExpander.cs.meta

3
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/SerializableGraphView.cs


var selectedDrawers = graphDataSource.graphAsset.drawingData.selection
.Select(guid => contentViewContainer.children
.OfType<NodeDrawer>()
.FirstOrDefault(drawer => ((NodeDrawData) drawer.dataProvider).node.guid == guid));
.FirstOrDefault(drawer => ((NodeDrawData) drawer.dataProvider).node.guid == guid))
.ToList();
foreach (var drawer in selectedDrawers)
AddToSelection(drawer);

12
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Manipulators/NodeExpander.cs.meta


fileFormatVersion: 2
guid: 1e2e1c761ebf4ce478e48e37c5b95ddb
timeCreated: 1478596127
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存