浏览代码

Rename variable in MaterialNodeView

/main
Peter Bay Bastian 7 年前
当前提交
336d2f81
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 11
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs

11
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs


}
void UpdateControls(MaterialNodePresenter nodeData)
void UpdateControls(MaterialNodePresenter nodePresenter)
if (!nodeData.node.guid.Equals(m_NodeGuid))
if (!nodePresenter.node.guid.Equals(m_NodeGuid))
foreach (var propertyInfo in nodeData.node.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public))
foreach (var propertyInfo in nodePresenter.node.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public))
m_ControlViews.Add(attribute.InstantiateControl(nodeData.node, propertyInfo));
m_ControlViews.Add(attribute.InstantiateControl(nodePresenter.node, propertyInfo));
if (!nodeData.expanded)
if (!nodePresenter.expanded)
m_ControlsContainer.Clear();
foreach (var view in m_ControlViews)
m_ControlsContainer.Add(view);
}

正在加载...
取消
保存