#include "StdAfx.h"
#include <maya/MFnPlugin.h>
#include "moduleLogicCmd.h"
MCallbackId mayaExitingId =0 ;
void mayaExitingCB (void *clientData) {
#ifdef AUTOLOADER_THREAD
{
threadData::stopThread () ;
}
#endif
}
MFnPlugin plugin (obj, PLUGIN_COMPANY, _T(
"1.0"), _T(
"Any")) ;
MModuleLogic::ModuleDetectionLogicInit (threadData::getThreadData ()) ;
plugin.registerCommand (kmoduleLogicCmdName, moduleLogicCmd::creator) ;
#ifdef AUTOLOADER_THREAD
{
threadData::startThread () ;
}
#endif
return (MS::kSuccess) ;
}
#ifdef AUTOLOADER_THREAD
{
threadData::stopThread () ;
}
#endif
plugin.deregisterCommand (kmoduleLogicCmdName) ;
return (MS::kSuccess) ;
}