浏览代码

Update to latest GraphView

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

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphView.cs


evt.StopPropagation();
}
private class AddNodeCreationObject : object
private class AddNodeCreationObject
{
public Vector2 m_Pos;
public readonly Type m_Type;

return;
var drawstate = node.drawState;
Vector3 localPos = contentViewContainer.transform.inverse.MultiplyPoint3x4(posObj.m_Pos);
Vector3 localPos = contentViewContainer.transform.matrix.inverse.MultiplyPoint3x4(posObj.m_Pos);
drawstate.position = new Rect(localPos.x, localPos.y, 0, 0);
node.drawState = drawstate;

正在加载...
取消
保存