public Node(Node node, GLTFRoot gltfRoot) : base(node, gltfRoot) { if (node == null) { return; } UseTRS = node.UseTRS; if (node.Camera != null) { Camera = new CameraId(node.Camera, gltfRoot); } if (node.Children != null) { Children = new List <NodeId>(node.Children.Count); foreach (NodeId child in node.Children) { Children.Add(new NodeId(child, gltfRoot)); } } if (node.Skin != null) { Skin = new SkinId(node.Skin, gltfRoot); } if (node.Matrix != null) { Matrix = new Matrix4x4(node.Matrix); } if (node.Mesh != null) { Mesh = new MeshId(node.Mesh, gltfRoot); } Rotation = node.Rotation; Scale = node.Scale; Translation = node.Translation; if (node.Weights != null) { Weights = node.Weights.ToList(); } if (node.Light != null) { Light = node.Light; } }
public LightId(LightId id, GLTFRoot newRoot) : base(id, newRoot) { }