Skip to content

Commit 3ef02b1

Browse files
authored
Use project defaul light property (#924)
Use the check value of the project form "default light"
1 parent 766082a commit 3ef02b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3ds Max/Max2Babylon/Exporter/BabylonExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public void Export(MaxExportParameters exportParameters)
550550
// Default light
551551
if (exportParameters.exportAnimationsOnly == false)
552552
{
553-
if (!exportParameters.pbrNoLight && babylonScene.LightsList.Count == 0)
553+
if (!exportParameters.pbrNoLight && babylonScene.LightsList.Count == 0 && rawScene.GetBoolProperty("babylonjs_addDefaultLight"))
554554
{
555555
RaiseWarning("No light defined", 1);
556556
RaiseWarning("A default hemispheric light was added for your convenience", 1);

0 commit comments

Comments
 (0)