Add more checks to hierarchical glTF test.

This commit is contained in:
kovacsv 2023-03-26 08:17:56 +02:00
parent 634c8ce3a0
commit 5d268ee819

View File

@ -688,6 +688,8 @@ describe ('Gltf Importer', function () {
let testFile = ['CubeHierarchy', 'CubeHierarchy.gltf']
ImportGltfFile (testFile[0], testFile[1], function (model) {
assert.ok (OV.CheckModel (model));
assert.strictEqual (model.MeshCount (), 3);
assert.strictEqual (model.MeshInstanceCount (), 4);
assert.deepStrictEqual (ModelNodesToTree (model), {
name : '<Root>',
childNodes : [