Skip to content

Commit ef391d1

Browse files
committed
Split namespace in texture name
1 parent abeb4dd commit ef391d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Maya/Exporter/BabylonExporter.GLTFExporter.Material.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private void ExportMaterial(BabylonMaterial babylonMaterial, GLTF gltf)
298298
if (baseColorBitmap != null || babylonTexture.bitmap != null)
299299
{
300300
var baseColorFileName = babylonMaterial.name + "_baseColor" + (isAlphaInTexture ? ".png" : ".jpg");
301-
baseColorFileName = baseColorFileName.Replace(":", string.Empty);
301+
baseColorFileName = baseColorFileName.Replace(":", "_");
302302
textureInfoBC = ExportBitmapTexture(gltf, babylonTexture, baseColorBitmap, baseColorFileName);
303303
gltfPbrMetallicRoughness.baseColorTexture = textureInfoBC;
304304
}

Maya/Exporter/BabylonExporter.Texture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ private BabylonTexture ExportBaseColorAlphaTexture(MFnDependencyNode baseColorTe
431431
{
432432
name = materialName + "_baseColor" + ".png" // TODO - unsafe name, may conflict with another texture name
433433
};
434-
babylonTexture.name = babylonTexture.name.Replace(":", string.Empty);
434+
babylonTexture.name = babylonTexture.name.Replace(":", "_");
435435

436436
// Level
437437
babylonTexture.level = 1.0f;

0 commit comments

Comments
 (0)