mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 08:34:14 -05:00
proper indent
This commit is contained in:
parent
fab88cfdfa
commit
bdebfeadee
@ -85,11 +85,11 @@ function loadMtl(mtlPath, options) {
|
||||
* @returns {String} The clean texture name
|
||||
*/
|
||||
function cleanTextureName (name) {
|
||||
var re = /-(bm|t|s|o|blendu|blendv|boost|mm|texres|clamp|imfchan|type)/;
|
||||
if (re.test(name)) {
|
||||
return name.split(/\s+/).pop();
|
||||
}
|
||||
return name;
|
||||
var re = /-(bm|t|s|o|blendu|blendv|boost|mm|texres|clamp|imfchan|type)/;
|
||||
if (re.test(name)) {
|
||||
return name.split(/\s+/).pop();
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
function parseLine(line) {
|
||||
|
Loading…
Reference in New Issue
Block a user