mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2025-01-31 03:53:13 -05:00
Style tweaks
This commit is contained in:
parent
ca7f0cca45
commit
e5f5970018
20
lib/obj.js
20
lib/obj.js
@ -9,7 +9,6 @@ var path = require('path');
|
||||
var loadImage = require('./image');
|
||||
var Material = require('./mtl');
|
||||
|
||||
|
||||
var Cartesian3 = Cesium.Cartesian3;
|
||||
var defined = Cesium.defined;
|
||||
|
||||
@ -279,15 +278,16 @@ function getImages(inputPath, materials) {
|
||||
}
|
||||
promises.push(loadImage(imagePath));
|
||||
}
|
||||
return Promise.all(promises).then(function(imageInfoArray) {
|
||||
var imageInfoArrayLength = imageInfoArray.length;
|
||||
for (var j = 0; j < imageInfoArrayLength; j++) {
|
||||
var image = images[j];
|
||||
var imageInfo = imageInfoArray[j];
|
||||
imagesInfo[image] = imageInfo;
|
||||
}
|
||||
return imagesInfo;
|
||||
});
|
||||
return Promise.all(promises)
|
||||
.then(function(imageInfoArray) {
|
||||
var imageInfoArrayLength = imageInfoArray.length;
|
||||
for (var j = 0; j < imageInfoArrayLength; j++) {
|
||||
var image = images[j];
|
||||
var imageInfo = imageInfoArray[j];
|
||||
imagesInfo[image] = imageInfo;
|
||||
}
|
||||
return imagesInfo;
|
||||
});
|
||||
}
|
||||
|
||||
function getMaterials(mtlPath, hasMaterialGroups) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user