From bacf0b2b178b3837f2fe838949497183926ca73c Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Wed, 13 Mar 2024 17:38:52 +0100 Subject: [PATCH] CustomSkinEditor - Disable BindingSource for part offsets for now --- PCK-Studio/Forms/Editor/CustomSkinEditor.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs index 4e100c68..d7d452de 100644 --- a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs +++ b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs @@ -32,7 +32,7 @@ namespace PckStudio.Forms.Editor private bool _allowInflate; private BindingSource skinPartListBindingSource; - private BindingSource skinOffsetListBindingSource; + //private BindingSource skinOffsetListBindingSource; private static GraphicsConfig _graphicsConfig = new GraphicsConfig() { @@ -44,6 +44,9 @@ namespace PckStudio.Forms.Editor { InitializeComponent(); rng = new Random(); + skinPartListBindingSource = new BindingSource(renderer3D1.ModelData, null); + skinPartListBox.DataSource = skinPartListBindingSource; + skinPartListBox.DisplayMember = "Type"; } public CustomSkinEditor(Skin skin, bool inflateOverlayParts = false, bool allowInflate = false) : this() @@ -84,12 +87,12 @@ namespace PckStudio.Forms.Editor renderer3D1.SetPartOffset(offset); } - skinPartListBindingSource = new BindingSource(renderer3D1.ModelData, null); - skinPartListBox.DataSource = skinPartListBindingSource; - skinPartListBox.DisplayMember = "Type"; + //skinOffsetListBindingSource = new BindingSource(renderer3D1.offsetSpecificMeshStorage, null); + //offsetListBox.DataSource = skinOffsetListBindingSource; + //offsetListBox.DisplayMember = "Value"; - skinOffsetListBindingSource = new BindingSource(renderer3D1, null); - offsetListBox.DataSource = skinOffsetListBindingSource; + skinPartListBindingSource.ResetBindings(false); + //skinOffsetListBindingSource.ResetBindings(false); } private void GenerateUVTextureMap(SkinBOX skinBox)