From b80af2ee1518feafe54b433891400af388e92680 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 18 Jun 2004 16:38:52 +0000 Subject: [PATCH] workaround Maya bug with animations --- pandatool/src/maya/mayaApi.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandatool/src/maya/mayaApi.cxx b/pandatool/src/maya/mayaApi.cxx index 03c0dfe20c..fa7188850e 100644 --- a/pandatool/src/maya/mayaApi.cxx +++ b/pandatool/src/maya/mayaApi.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include "post_maya_include.h" #ifdef WIN32_VC @@ -33,6 +34,11 @@ MayaApi *MayaApi::_global_api = (MayaApi *)NULL; +// We need this bogus object just to force the application to link +// with OpenMayaAnim.lib; otherwise, Maya will complain (when compiled +// on Windows) that it is unable to find source plug 'ikRPsolver.msg'. +static MFnAnimCurve force_link_with_OpenMayaAnim; + //////////////////////////////////////////////////////////////////// // Function: MayaApi::Constructor // Access: Protected