LoadMaterialUI() public method

public LoadMaterialUI ( ) : void
return void
Ejemplo n.º 1
0
        private void grnObjectsTreeListView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.grnObjectsTreeListView.SelectedObject == null)
            {
                return;
            }

            if (this.grnObjectsTreeListView.SelectedObject is GrnBone)
            {
                grn.LoadBoneUI();
            }
            else if (this.grnObjectsTreeListView.SelectedObject is GrnMesh)
            {
                grn.LoadMeshUI();
            }
            else if (this.grnObjectsTreeListView.SelectedObject is GrnMaterial)
            {
                grn.LoadMaterialUI();
            }
            else if (this.grnObjectsTreeListView.SelectedObject is GrnTexture)
            {
                grn.LoadTextureUI();
            }

            this.grnObjectListView.SetObjects(new object[] { this.grnObjectsTreeListView.SelectedObject });
        }