Пример #1
0
 public static void RegisterEditor(MaterialEditor editor, MixtureNodeView nodeView, MixtureGraph graph)
 {
     if (mixtureDrawerInfos.ContainsKey(editor))
     {
         mixtureDrawerInfos[editor].graph    = graph;
         mixtureDrawerInfos[editor].nodeView = nodeView;
     }
     else
     {
         mixtureDrawerInfos[editor] = new MixtureDrawerInfo {
             graph = graph, nodeView = nodeView
         }
     };
 }
Пример #2
0
 public static void RegisterEditor(MaterialEditor editor, MixtureNodeView nodeView, MixtureGraph graph)
 {
     mixtureDrawerInfos[editor] = new MixtureDrawerInfo {
         graph = graph, nodeView = nodeView
     };
 }