mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-26 21:35:10 +00:00
Remove textBoxFailCheck from generateModel
This commit is contained in:
@@ -138,7 +138,7 @@ namespace PckStudio
|
||||
public float Length;
|
||||
public int U, V;
|
||||
|
||||
public ModelPart(string @type, float x, float y, float z, float width, float height, float length, int u, int v)
|
||||
public ModelPart(string type, float x, float y, float z, float width, float height, float length, int u, int v)
|
||||
{
|
||||
Type = type;
|
||||
X = x;
|
||||
@@ -212,6 +212,18 @@ namespace PckStudio
|
||||
string name = Format[0];
|
||||
if (ValidModelBoxTypes.Contains(name))
|
||||
{
|
||||
// %10ls = name
|
||||
// %f
|
||||
// %f
|
||||
// %f
|
||||
// %f
|
||||
// %f
|
||||
// %f
|
||||
// %f
|
||||
// %f
|
||||
// %d
|
||||
// %d
|
||||
// %f
|
||||
try
|
||||
{
|
||||
float x = float.Parse(Format[1]);
|
||||
@@ -930,18 +942,6 @@ namespace PckStudio
|
||||
//render();
|
||||
}
|
||||
|
||||
private void textBoxFailCheck(TextBox textBox)
|
||||
{
|
||||
try
|
||||
{
|
||||
textBox.Text = double.Parse(textBox.Text).ToString();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
textBox.Text = "0";
|
||||
}
|
||||
}
|
||||
|
||||
private void SizeXUpDown_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (listViewBoxes.SelectedItems.Count != 0 &&
|
||||
|
||||
Reference in New Issue
Block a user