//add lod private void button1_Click(object sender, EventArgs e) { thisekement.lodMats.Add(new Material.Lod()); currentLod = thisekement.lodMats[thisekement.lodMats.Count - 1]; currentSubSet = null; outMatLods(); outLod(); outSubSet(); }
//select lod private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) { currentLod = thisekement.lodMats[listBox1.SelectedIndex]; currentSubSet = null; outLod(); outSubSet(); } }
//del lod private void button4_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) { thisekement.lodMats.RemoveAt(listBox1.SelectedIndex); currentSubSet = null; currentLod = null; outMatLods(); outLod(); outSubSet(); } }