void scene_OnAdd(object sender, AddEventArgs e) { if (e.Item is Material m) { materials.Add(m); addMaterial(m); } }
void scene_OnAdd(object sender, AddEventArgs e) { var m = (e.Item as Model); if (m != null) { ProcessTree(m, e.Index); } }
void scene_OnAdd(object sender, AddEventArgs e) { var t = (e.Item as Material); if (t != null) { addMaterial(t); } }