diff options
| author | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
|---|---|---|
| committer | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
| commit | bd0027e737c6512397f841c22786274ed74b927f (patch) | |
| tree | f7ffbdb8f3741bb7f24635616cc189cba5cb865c /mayaPlug/plugin.cpp | |
| download | archived-shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.tar.xz archived-shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.zip | |
Adding Shave-and-a-Haircut 9.6
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); +} + |