Skip to content

Commit 2a966db

Browse files
authored
Correct property access for max 2023 (#1049)
1 parent 620fd27 commit 2a966db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

3ds Max/Max2Babylon/Exporter/BabylonExporter.Material.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,11 @@ private void ExportPhysicalMaterial(IIGameMaterial materialNode, IIPropertyConta
695695
babylonMaterial.occlusionTexture = ExportTexture(ambientOcclusionTexmap, babylonScene);
696696
}
697697

698+
#if MAX2023
699+
var normalMapAmount = propertyContainer.GetFloatProperty("bump_map_amt");
700+
#else
698701
var normalMapAmount = propertyContainer.GetFloatProperty(91);
702+
#endif
699703
babylonMaterial.normalTexture = ExportPBRTexture(materialNode, 30, babylonScene, normalMapAmount);
700704

701705
babylonMaterial.emissiveTexture = ExportPBRTexture(materialNode, 17, babylonScene);

0 commit comments

Comments
 (0)