diff options
Diffstat (limited to 'mayaPlug/plugin.cpp')
| -rw-r--r-- | mayaPlug/plugin.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mayaPlug/plugin.cpp b/mayaPlug/plugin.cpp new file mode 100644 index 0000000..6b4b602 --- /dev/null +++ b/mayaPlug/plugin.cpp @@ -0,0 +1,35 @@ +// Shave and a Haircut +// (c) 2019 Epic Games +// US Patent 6720962 + +// +// Maya Bug Workaround +// ------------------- +// +// Even though libShave includes MFnPlugin.h, if we don't also include it +// here then MPxSurfaceShapes never fire their setDependentsDirty(). I +// don't know what that's so, but it is, as of Maya 7.0. +// +// Although the API docs say that MFnPlugin.h should only be include "once +// per plugin", to avoid symbol clashes, what they really mean is "once per +// shared object". Since this is in a separate shared object from libShave +// we can safely include it here as well. +// +#include <maya/MFnPlugin.h> + +#include <maya/MObject.h> +#include <maya/MStatus.h> + +#include "libShave.h" + +MStatus initializePlugin(MObject obj) +{ + return shaveInitializePlugin(obj); +} + + +MStatus uninitializePlugin(MObject obj) +{ + return shaveUninitializePlugin(obj); +} + |