Fixed linting

This commit is contained in:
Omar Shehata 2018-08-30 16:02:54 -04:00
parent e92b68d947
commit a8dc3ccc23
3 changed files with 2 additions and 3 deletions

View File

@ -97,7 +97,7 @@ function createGltf(objData, options) {
if (options.specularGlossiness) {
gltf.extensionsUsed.push('KHR_materials_pbrSpecularGlossiness');
gltf.extensionsRequired.push('KHR_materials_pbrSpecularGlossiness');
}
}
if (options.unlit) {
gltf.extensionsUsed.push('KHR_materials_unlit');

View File

@ -280,7 +280,7 @@ function convertMaterial(material, options) {
return createSpecularGlossinessMaterial(material, options);
} else if (options.metallicRoughness) {
return createMetallicRoughnessMaterial(material, options);
}
}
// No material type specified, convert the material to metallic roughness
convertTraditionalToMetallicRoughness(material);
return createMetallicRoughnessMaterial(material, options);

View File

@ -5,7 +5,6 @@ var fsExtra = require('fs-extra');
var loadMtl = require('../../lib/loadMtl');
var loadTexture = require('../../lib/loadTexture');
var obj2gltf = require('../../lib/obj2gltf');
var Texture = require('../../lib/Texture');
var clone = Cesium.clone;