diff --git a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs index 0373ffb6..bc1c7a05 100644 --- a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs +++ b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs @@ -76,7 +76,7 @@ namespace PckStudio.Forms.Editor if (animeditor.ShowDialog() == DialogResult.OK) { renderer3D1.ANIM = _skin.Model.ANIM = animeditor.ResultAnim; - DrawDefaultUvAreas(_hightlightDefaultUvAreas); + skinPartListBox_SelectedIndexChanged(this, EventArgs.Empty); } return true; } @@ -311,13 +311,11 @@ namespace PckStudio.Forms.Editor uvPictureBox.Image = new Bitmap(scaleSize.Width, scaleSize.Height); using (Graphics g = Graphics.FromImage(uvPictureBox.Image)) { - float lineWidth = ((_skin.Model.Texture.Width / renderer3D1.TextureSize.Width) + (_skin.Model.Texture.Height / renderer3D1.TextureSize.Height)) / 2f; GraphicsPath graphicsPath = box.GetUVGraphicsPath(new System.Numerics.Vector2(scaleSize.Width * renderer3D1.TillingFactor.X, scaleSize.Height * renderer3D1.TillingFactor.Y)); var brush = new SolidBrush(Color.FromArgb(127, avgColor.GreyScaled())); g.ApplyConfig(_graphicsConfig); g.DrawImage(_skin.Model.Texture, new Rectangle(Point.Empty, scaleSize), new Rectangle(Point.Empty, _skin.Model.Texture.Size), GraphicsUnit.Pixel); g.FillPath(brush, graphicsPath); - //g.DrawPath(new Pen(brush), graphicsPath); } uvPictureBox.Invalidate(); } diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 7ca8410e..097eb41d 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -1730,6 +1730,7 @@ namespace PckStudio return false; } + [Obsolete("Refactor or remove this")] private void importExtractedSkinsFolder(object sender, EventArgs e) { OpenFolderDialog contents = new OpenFolderDialog();