From 779a2bb655ec52a80798295d705b8cd3d8b5436a Mon Sep 17 00:00:00 2001 From: MattNL Date: Tue, 25 Apr 2023 20:01:15 -0400 Subject: [PATCH] Fixed member names in BoxEditor --- PCK-Studio/Forms/Editor/BoxEditor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PCK-Studio/Forms/Editor/BoxEditor.cs b/PCK-Studio/Forms/Editor/BoxEditor.cs index f53e158a..771f3bc6 100644 --- a/PCK-Studio/Forms/Editor/BoxEditor.cs +++ b/PCK-Studio/Forms/Editor/BoxEditor.cs @@ -16,12 +16,12 @@ namespace PckStudio.Forms.Editor SkinBox box = new SkinBox(inBOX); - if (string.IsNullOrEmpty(box.Parent) || !parentComboBox.Items.Contains(box.Parent)) + if (string.IsNullOrEmpty(box.Type) || !parentComboBox.Items.Contains(box.Type)) { throw new Exception("Failed to parse BOX value"); } - parentComboBox.SelectedItem = parentComboBox.Items[parentComboBox.Items.IndexOf(box.Parent)]; + parentComboBox.SelectedItem = parentComboBox.Items[parentComboBox.Items.IndexOf(box.Type)]; PosXUpDown.Value = (decimal)box.Pos.X; PosYUpDown.Value = (decimal)box.Pos.Y; PosZUpDown.Value = (decimal)box.Pos.Z; @@ -32,7 +32,7 @@ namespace PckStudio.Forms.Editor uvYUpDown.Value = (decimal)box.V; armorCheckBox.Checked = box.HideWithArmor; mirrorCheckBox.Checked = box.Mirror; - inflationUpDown.Value = (decimal)box.Inflation; + inflationUpDown.Value = (decimal)box.Scale; } private void saveButton_Click(object sender, EventArgs e)