void SCHEMA2NODE.ApplyTo(Node dstNode, Schema2SceneBuilder context) { // we try to assign our mesh to the target node. // but if the target node already has a mesh, we need to create // a child node that will contain our mesh. if (dstNode.Mesh != null) { dstNode = dstNode.CreateNode(); } dstNode.Mesh = context.GetMesh(_Mesh); }
void SCHEMA2NODE.Setup(Node dstNode, Schema2SceneBuilder context) { dstNode.Mesh = context.GetMesh(_Mesh); }