private void LoadTextureMaps(object sender, EventArgs e) { UpdateTabIndex(); var textureEditor = GetActiveEditor <PaneMatTextureMapsEditor>(); textureEditor.LoadMaterial(ActiveMaterial, this, ParentEditor.GetTextures()); }
private void LoadTextureMaps(object sender, EventArgs e) { UpdateTabIndex(); var textureEditor = GetActiveEditor <PaneMatTextureMapsEditor>(); int numTexCoord = 1; if (ActivePane is IPicturePane) { numTexCoord = ((IPicturePane)ActivePane).TexCoords.Length; } textureEditor.LoadMaterial(ActiveMaterial, this, ParentEditor.GetTextures(), numTexCoord); }