浏览代码

Add undo step for drag and dropping sub-graphs

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

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Manipulators/GraphDropTarget.cs


var subGraphAsset = obj as MaterialSubGraphAsset;
if (subGraphAsset != null)
{
m_Graph.owner.RegisterCompleteObjectUndo("Drag Sub-Graph");
var node = new SubGraphNode();
var drawState = node.drawState;
drawState.position = new Rect(nodePosition, drawState.position.size);

正在加载...
取消
保存