soc-2008-mxcurioni: renamed all Freestyle API related files with 'BPy_' prefix to avoid library name collision.
Included MediumType's initialization at proper time to avoid Blender's crash.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#ifndef FREESTYLE_PYTHON_CURVEPOINT_H
|
||||
#define FREESTYLE_PYTHON_CURVEPOINT_H
|
||||
|
||||
#include "../BPy_Interface0D.h"
|
||||
#include "../../stroke/Curve.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
extern PyTypeObject CurvePoint_Type;
|
||||
|
||||
#define BPy_CurvePoint_Check(v) (( (PyObject *) v)->ob_type == &CurvePoint_Type)
|
||||
|
||||
/*---------------------------Python BPy_CurvePoint structure definition----------*/
|
||||
typedef struct {
|
||||
BPy_Interface0D py_if0D;
|
||||
CurvePoint *cp;
|
||||
} BPy_CurvePoint;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* FREESTYLE_PYTHON_CURVEPOINT_H */
|
||||
Reference in New Issue
Block a user