Merge pull request #2032 from Steelsmasher/Steelsmasherpatch-1

Remove trailing space from map_Kd property
This commit is contained in:
JannisX11 2023-11-23 17:12:38 +01:00 committed by GitHub
commit 9bf93f361c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,7 @@ var codec = new Codec('obj', {
if (materials.hasOwnProperty(key) && materials[key]) {
var tex = materials[key];
mtlOutput += 'newmtl m_' +key+ '\n'
mtlOutput += `map_Kd ${tex.name} \n`;
mtlOutput += `map_Kd ${tex.name}\n`;
}
}
mtlOutput += 'newmtl none'