浏览代码

Trigger OnModified on master node when preview is rotated or scaled

/main
Jens Holm 7 年前
当前提交
2ce394e7
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs


m_PreviewScrollPosition.y = Mathf.Clamp(m_PreviewScrollPosition.y, -90f, 90f);
Quaternion previewRotation = Quaternion.Euler(m_PreviewScrollPosition.y, 0, 0) * Quaternion.Euler(0, m_PreviewScrollPosition.x, 0);
m_Graph.previewData.rotation = previewRotation;
masterNode.onModified(masterNode, ModificationScope.Node);
}
void OnMouseScroll(float scrollDelta)

masterNode.onModified(masterNode, ModificationScope.Node);
}
void OnAddProperty()

正在加载...
取消
保存