Skip to content

Commit 3364eb0

Browse files
authored
Merge pull request #563 from Selmar/patch-1
[3dsMax][C#][PostBuild] Handle using Max 2016 with Max 2015 exporter version
2 parents e7736fd + 2519966 commit 3364eb0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

3ds Max/Max2Babylon/OnPostBuild.bat

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ SETLOCAL enabledelayedexpansion
33

44

55
SET max_version=%2
6+
SET exporter_version=%max_version%
67
SET max_location=!ADSK_3DSMAX_x64_%max_version%!
78

8-
SET source_dir="%~dp0%max_version%\bin\%1"
9+
IF %exporter_version%==2016 SET exporter_version=2015
10+
11+
ECHO "Max version is %max_version%"
12+
ECHO "Exporter version is %exporter_version%"
13+
14+
SET source_dir="%~dp0%exporter_version%\bin\%1"
915
ECHO %source_dir%
1016

1117
IF "%max_location%"=="" (
@@ -67,4 +73,4 @@ GOTO Close
6773

6874
:Close
6975
PAUSE
70-
EXIT
76+
EXIT

0 commit comments

Comments
 (0)