1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Some adjustments

This commit is contained in:
KillzXGaming 2020-03-18 12:07:34 -04:00
parent 9df4bf6068
commit 360f063d95
5 changed files with 9 additions and 8 deletions

View File

@ -59,9 +59,7 @@ namespace Toolbox.Library
}
public static void CreateMdiWindow(STForm form, bool Show = true)
{
var mainform = Application.OpenForms[0];
((IMdiContainer)mainform).AddChildContainer(form);
((IMdiContainer)Runtime.MainForm).AddChildContainer(form);
}
public static ObjectEditor GetObjectEditor()
{

View File

@ -30,7 +30,7 @@ namespace Toolbox.Library
public short SmoothMatrixIndex;
private Matrix4 transform;
private Quaternion rotation;
private Quaternion rotation = Quaternion.Identity;
private Vector3 eulerRotation;
/// <summary>
@ -63,7 +63,7 @@ namespace Toolbox.Library
/// <summary>
/// Gets or sets the scale of the bone in world space.
/// </summary>
public Vector3 Scale { get; set; }
public Vector3 Scale { get; set; } = Vector3.One;
/// <summary>
/// Gets or sets the rotation of the bone in world space.
@ -95,11 +95,13 @@ namespace Toolbox.Library
set {
eulerRotation = value;
rotation = STMath.FromEulerAngles(value);
if (rotation.W == 0)
rotation.W = 1;
}
}
public Vector3 pos = Vector3.Zero, sca = new Vector3(1f, 1f, 1f);
public Quaternion rot = Quaternion.FromMatrix(Matrix3.Zero);
public Quaternion rot = Quaternion.Identity;
public Matrix4 invert;
public Matrix4 GetTransform()

Binary file not shown.

Binary file not shown.

View File

@ -1473,6 +1473,7 @@ namespace Toolbox
else if (fileFormat is ITextureContainer && exportMode == ExportMode.Textures)
{
string name = fileFormat.FileName.Split('.').FirstOrDefault();
if (settings.SeperateTextureContainers)
outputFolder = Path.Combine(outputFolder, name);
if (((ITextureContainer)fileFormat).TextureList.Count > 0)