1
0
mirror of synced 2024-11-28 01:10:51 +01:00

Fix build errors

This commit is contained in:
KillzXGaming 2019-11-12 17:11:35 -05:00
parent 21a459846e
commit 8fdd61253a
2 changed files with 13 additions and 0 deletions

View File

@ -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);
}

View File

@ -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;