Allow external root

This commit is contained in:
ousttrue
2019-01-10 18:44:57 +09:00
parent 3471387b79
commit 0108d018e0

View File

@@ -667,7 +667,10 @@ namespace UniGLTF
}
// connect root
Root = new GameObject("_root_");
if (Root != null)
{
Root = new GameObject("_root_");
}
foreach (var x in GLTF.rootnodes)
{
var t = nodes[x].Transform;