Some adjustments
This commit is contained in:
parent
9df4bf6068
commit
360f063d95
@ -59,9 +59,7 @@ namespace Toolbox.Library
|
|||||||
}
|
}
|
||||||
public static void CreateMdiWindow(STForm form, bool Show = true)
|
public static void CreateMdiWindow(STForm form, bool Show = true)
|
||||||
{
|
{
|
||||||
var mainform = Application.OpenForms[0];
|
((IMdiContainer)Runtime.MainForm).AddChildContainer(form);
|
||||||
|
|
||||||
((IMdiContainer)mainform).AddChildContainer(form);
|
|
||||||
}
|
}
|
||||||
public static ObjectEditor GetObjectEditor()
|
public static ObjectEditor GetObjectEditor()
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,7 @@ namespace Toolbox.Library
|
|||||||
public short SmoothMatrixIndex;
|
public short SmoothMatrixIndex;
|
||||||
|
|
||||||
private Matrix4 transform;
|
private Matrix4 transform;
|
||||||
private Quaternion rotation;
|
private Quaternion rotation = Quaternion.Identity;
|
||||||
private Vector3 eulerRotation;
|
private Vector3 eulerRotation;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -63,7 +63,7 @@ namespace Toolbox.Library
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the scale of the bone in world space.
|
/// Gets or sets the scale of the bone in world space.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 Scale { get; set; }
|
public Vector3 Scale { get; set; } = Vector3.One;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the rotation of the bone in world space.
|
/// Gets or sets the rotation of the bone in world space.
|
||||||
@ -95,11 +95,13 @@ namespace Toolbox.Library
|
|||||||
set {
|
set {
|
||||||
eulerRotation = value;
|
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 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 invert;
|
||||||
|
|
||||||
public Matrix4 GetTransform()
|
public Matrix4 GetTransform()
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1473,7 +1473,8 @@ namespace Toolbox
|
|||||||
else if (fileFormat is ITextureContainer && exportMode == ExportMode.Textures)
|
else if (fileFormat is ITextureContainer && exportMode == ExportMode.Textures)
|
||||||
{
|
{
|
||||||
string name = fileFormat.FileName.Split('.').FirstOrDefault();
|
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)
|
if (((ITextureContainer)fileFormat).TextureList.Count > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user