未验证 提交 84e24682 编写于 作者: R Rémi Arnaud 提交者: GitHub

Merge pull request #593 from KhronosGroup/misc/max-2019

added max 2019
此差异已折叠。
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册