Set texture name based on three map name.

This commit is contained in:
kovacsv 2021-11-03 08:19:44 +01:00
parent 628918aa15
commit b90425e247

View File

@ -238,6 +238,8 @@ OV.ImporterThreeBase = class extends OV.ImporterBase
let textureName = null;
if (objectUrlToFileName.has (threeMap.image.src)) {
textureName = objectUrlToFileName.get (threeMap.image.src);
} else if (threeMap.name !== undefined && threeMap.name !== null) {
textureName = threeMap.name + '.' + OV.GetFileExtensionFromMimeType (base64Buffer.mimeType);
} else {
textureName = 'Embedded_' + threeMap.id.toString () + '.' + OV.GetFileExtensionFromMimeType (base64Buffer.mimeType);
}