blob: 6b4b6027c26540c651c5588659bacc653007c242 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);
}
|