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.
@ -94,12 +94,14 @@ namespace Toolbox.Library
get { return eulerRotation; }
set {
eulerRotation = value;
rotation = STMath.FromEulerAngles(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,7 +1473,8 @@ namespace Toolbox
else if (fileFormat is ITextureContainer && exportMode == ExportMode.Textures)
{
string name = fileFormat.FileName.Split('.').FirstOrDefault();
outputFolder = Path.Combine(outputFolder, name);
if (settings.SeperateTextureContainers)
outputFolder = Path.Combine(outputFolder, name);
if (((ITextureContainer)fileFormat).TextureList.Count > 0)
{