mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2025-03-01 22:13:49 -05:00
Naming changes to be more like master
This commit is contained in:
parent
376d228ae0
commit
3ca2822690
@ -439,9 +439,9 @@ function getMtlPaths(mtllibLine) {
|
||||
function finishLoading(nodes, mtlPaths, objPath, usesMaterials, options) {
|
||||
nodes = cleanNodes(nodes);
|
||||
if (nodes.length === 0) {
|
||||
return Promise.reject(new RuntimeError(objPath + ' does not have any geometry data'));
|
||||
throw new RuntimeError(objPath + ' does not have any geometry data');
|
||||
}
|
||||
return loadMaterials(mtlPaths, objPath, options)
|
||||
return loadMtls(mtlPaths, objPath, options)
|
||||
.then(function(materials) {
|
||||
if (Object.keys(materials).length > 0 && !usesMaterials) {
|
||||
assignDefaultMaterial(nodes, materials);
|
||||
@ -467,7 +467,7 @@ function outsideDirectory(file, directory) {
|
||||
return (path.relative(directory, file).indexOf('..') === 0);
|
||||
}
|
||||
|
||||
function loadMaterials(mtlPaths, objPath, options) {
|
||||
function loadMtls(mtlPaths, objPath, options) {
|
||||
var objDirectory = path.dirname(objPath);
|
||||
var materials = {};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user