mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-30 03:50:14 -05:00
Cleanup test
This commit is contained in:
parent
1f0278ad0c
commit
a55ea69661
@ -175,8 +175,6 @@ describe('createGltf', function() {
|
|||||||
var gltf = createGltf(mixedAttributesObjData, options);
|
var gltf = createGltf(mixedAttributesObjData, options);
|
||||||
var materials = gltf.materials;
|
var materials = gltf.materials;
|
||||||
var meshes = gltf.meshes;
|
var meshes = gltf.meshes;
|
||||||
var i;
|
|
||||||
var material;
|
|
||||||
|
|
||||||
var referenceMaterial = mixedAttributesObjData.materials[0];
|
var referenceMaterial = mixedAttributesObjData.materials[0];
|
||||||
delete referenceMaterial.name;
|
delete referenceMaterial.name;
|
||||||
@ -225,13 +223,13 @@ describe('createGltf', function() {
|
|||||||
|
|
||||||
// Test that primitives without uvs reference materials without textures
|
// Test that primitives without uvs reference materials without textures
|
||||||
var meshesLength = meshes.length;
|
var meshesLength = meshes.length;
|
||||||
for (i = 0; i < meshesLength; ++i) {
|
for (var i = 0; i < meshesLength; ++i) {
|
||||||
var mesh = meshes[i];
|
var mesh = meshes[i];
|
||||||
var primitives = mesh.primitives;
|
var primitives = mesh.primitives;
|
||||||
var primitivesLength = primitives.length;
|
var primitivesLength = primitives.length;
|
||||||
for (var j = 0; j < primitivesLength; ++j) {
|
for (var j = 0; j < primitivesLength; ++j) {
|
||||||
var primitive = primitives[j];
|
var primitive = primitives[j];
|
||||||
material = materials[primitive.material];
|
var material = materials[primitive.material];
|
||||||
if (!defined(primitive.attributes.TEXCOORD_0)) {
|
if (!defined(primitive.attributes.TEXCOORD_0)) {
|
||||||
expect(material.pbrMetallicRoughness.baseColorTexture).toBeUndefined();
|
expect(material.pbrMetallicRoughness.baseColorTexture).toBeUndefined();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user