mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2025-03-02 14:34:03 -05:00
Fix tests and jshint
This commit is contained in:
parent
02c3aa18db
commit
bedbb6ef96
@ -16,6 +16,16 @@ var DeveloperError = Cesium.DeveloperError;
|
||||
|
||||
module.exports = convert;
|
||||
|
||||
/**
|
||||
* A callback function that logs messages.
|
||||
* @callback Logger
|
||||
*
|
||||
* @param {String} message The message to log.
|
||||
*/
|
||||
var defaultLogger = function(message) {
|
||||
console.log(message);
|
||||
};
|
||||
|
||||
/**
|
||||
* Converts an obj file to a glTF file.
|
||||
*
|
||||
@ -119,13 +129,3 @@ function convert(objPath, gltfPath, options) {
|
||||
* @private
|
||||
*/
|
||||
convert._outputJson = fsExtraOutputJson;
|
||||
|
||||
/**
|
||||
* A callback function that logs messages.
|
||||
* @callback Logger
|
||||
*
|
||||
* @param {String} message The message to log.
|
||||
*/
|
||||
var defaultLogger = function(message) {
|
||||
console.log(message);
|
||||
};
|
||||
|
@ -40,6 +40,7 @@ describe('convert', function() {
|
||||
quantize : false,
|
||||
compressTextureCoordinates : false,
|
||||
aoOptions : undefined,
|
||||
kmcOptions : undefined,
|
||||
smoothNormals : false,
|
||||
optimizeForCesium : false,
|
||||
textureCompressionOptions : undefined,
|
||||
@ -63,6 +64,7 @@ describe('convert', function() {
|
||||
optimize : true,
|
||||
generateNormals : true,
|
||||
ao : true,
|
||||
kmc : true,
|
||||
optimizeForCesium : true,
|
||||
textureCompressionOptions : textureCompressionOptions
|
||||
};
|
||||
@ -81,6 +83,7 @@ describe('convert', function() {
|
||||
quantize : true,
|
||||
compressTextureCoordinates : true,
|
||||
aoOptions : {},
|
||||
kmcOptions : {},
|
||||
smoothNormals : true,
|
||||
optimizeForCesium : true,
|
||||
textureCompressionOptions : textureCompressionOptions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user