Skip to content

Commit

Permalink
Merge pull request #593 from KhronosGroup/misc/max-2019
Browse files Browse the repository at this point in the history
added max 2019
  • Loading branch information
RemiArnaud authored Oct 11, 2018
2 parents ba14e3b + 685c47d commit 84e2468
Show file tree
Hide file tree
Showing 7 changed files with 793 additions and 345 deletions.
241 changes: 234 additions & 7 deletions COLLADAMax/COLLADAMax.sln

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions COLLADAMax/include/COLLADAMaxPrerequisites.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@
# define MAX_2018
#endif

#if ( MAX_VERSION_MAJOR >= 21 )
# define MAX_2019_OR_NEWER
#endif
#if ( MAX_VERSION_MAJOR == 21 )
# define MAX_2019
#endif

// Max 2009 requires RTTI to be enabled
#ifdef MAX_2009_OR_NEWER
#ifndef _CPPRTTI
Expand Down
2 changes: 2 additions & 0 deletions COLLADAMax/include/COLLADAMaxStableHeaders.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
# pragma message ("Compiling for Max2017")
#elif defined MAX_2018
# pragma message ("Compiling for Max2018")
#elif defined MAX_2019
# pragma message ("Compiling for Max2019")
#else
# error( "Unsupported Max version" )
#endif
Expand Down
559 changes: 546 additions & 13 deletions COLLADAMax/scripts/COLLADAMax.vcxproj

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion COLLADAMax/src/COLLADAMaxGeometryExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,11 @@ namespace COLLADAMax
maxobj->MakeBezier(0, shape);

// for each curve
#ifdef MAX_2019_OR_NEWER
int splinesCount = min(shape.SplineCount(), maxobj->NumberOfCurves(0));
#else
int splinesCount = min(shape.SplineCount(), maxobj->NumberOfCurves());

#endif
if( splinesCount < 1 )
{
// no spline to export
Expand Down
158 changes: 0 additions & 158 deletions COLLADASaxFrameworkLoader/scripts/COLLADASaxFrameworkLoader.vcxproj

Large diffs are not rendered by default.

166 changes: 0 additions & 166 deletions common/libftoa/scripts/libftoa.vcxproj

Large diffs are not rendered by default.

0 comments on commit 84e2468

Please sign in to comment.