mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Fix build errors
This commit is contained in:
parent
21a459846e
commit
8fdd61253a
2 changed files with 13 additions and 0 deletions
|
@ -248,6 +248,11 @@ namespace FirstPlugin
|
|||
{
|
||||
var bone = new Bone(Skeleton);
|
||||
bone.Read(reader);
|
||||
if (i == 0)
|
||||
bone.parentIndex = -1;
|
||||
else if (bone.parentIndex == -1)
|
||||
bone.parentIndex = 0;
|
||||
|
||||
Skeleton.bones.Add(bone);
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ using System.Xml;
|
|||
using ColladaHelper;
|
||||
using OpenTK;
|
||||
using Toolbox.Library.Rendering;
|
||||
using Toolbox.Library.Collada;
|
||||
|
||||
namespace Toolbox.Library
|
||||
{
|
||||
|
@ -24,6 +25,12 @@ namespace Toolbox.Library
|
|||
public string ImageFolder = "";
|
||||
}
|
||||
|
||||
public class TextureMap
|
||||
{
|
||||
public uint TextureChannel = 0;
|
||||
public string Type = "diffuse";
|
||||
}
|
||||
|
||||
public class Version
|
||||
{
|
||||
public int Major = 1;
|
||||
|
@ -40,6 +47,7 @@ namespace Toolbox.Library
|
|||
}
|
||||
|
||||
|
||||
|
||||
public List<STGenericObject> objects = new List<STGenericObject>();
|
||||
public List<STGenericMaterial> materials = new List<STGenericMaterial>();
|
||||
public STSkeleton skeleton;
|
||||
|
|
Loading…
Add table
Reference in a new issue