Пример #1
0
 private Model(
     ModelBoneHierarchy boneHierarchy,
     ModelSubObject[] subObjects)
 {
     BoneHierarchy = boneHierarchy;
     SubObjects    = subObjects;
 }
Пример #2
0
 internal Model(
     Asset asset,
     ModelBoneHierarchy boneHierarchy,
     ModelSubObject[] subObjects)
     : this(boneHierarchy, subObjects)
 {
     SetNameAndInstanceId(asset);
 }
Пример #3
0
 internal Model(
     string name,
     ModelBoneHierarchy boneHierarchy,
     ModelSubObject[] subObjects)
     : this(boneHierarchy, subObjects)
 {
     SetNameAndInstanceId("W3DContainer", name);
 }
Пример #4
0
        internal Model(
            ModelBoneHierarchy boneHierarchy,
            ModelSubObject[] subObjects)
        {
            BoneHierarchy = boneHierarchy;

            foreach (var subObject in subObjects)
            {
                AddDisposable(subObject.RenderObject);
            }
            SubObjects = subObjects;
        }
Пример #5
0
        private Model(
            ModelBoneHierarchy boneHierarchy,
            ModelSubObject[] subObjects)
        {
            BoneHierarchy = boneHierarchy;
            SubObjects    = subObjects;

            foreach (var subObject in subObjects)
            {
                if (subObject.RenderObject is ModelMesh modelMesh && modelMesh.Skinned)
                {
                    HasSkinnedMeshes = true;
                    break;
                }
            }
        }