コード例 #1
0
        private void LoadTextureMaps(object sender, EventArgs e)
        {
            UpdateTabIndex();
            var textureEditor = GetActiveEditor <PaneMatTextureMapsEditor>();

            textureEditor.LoadMaterial(ActiveMaterial, this, ParentEditor.GetTextures());
        }
コード例 #2
0
ファイル: PaneEditor.cs プロジェクト: week9/Switch-Toolbox
        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);
        }