Пример #1
0
        private void _addInherit_Click(object sender, EventArgs e)
        {
            var selectedMaterial = (_hierachyTree.SelectedNode != null) ? _hierachyTree.SelectedNode.Text : null;
            if (selectedMaterial == null) return;

            var result = Prompt.ShowDialog(
                "Material configuration:",
                "Add Inheritted Material Settings");
            if (result.Length > 0)
            {
                using (var mat = new GUILayer.RawMaterial(selectedMaterial))
                    mat.AddInheritted(result);
                // now we need to refresh this control with the new changes...
                Object = _activeObject;
            }
        }