Example #1
0
        public int Init(Material m, Scene s)
        {
            m_Material = m;

            m_bIgnore = true;

            MaterialList.Items.Clear();
            MaterialList.Items.Add("<New...>");
            MaterialList.Items.Add("<None>");

            foreach (var kvb in m.m_Scene.Materials)
            {
                MaterialList.Items.Add(kvb.Value.Name);
            }

            MaterialList.SelectedIndex = MaterialList.FindString(m.Name);

            m_bIgnore = false;

            return(1);
        }