forked from bartvdbraak/blender
*fixes global redefinitions
- added some extern keywords
This commit is contained in:
parent
9fbf699eac
commit
7d536502f8
@ -44,8 +44,7 @@
|
|||||||
#include "DNA_object_types.h" //This must come before BIF_editarmature.h...
|
#include "DNA_object_types.h" //This must come before BIF_editarmature.h...
|
||||||
#include "BIF_editarmature.h"
|
#include "BIF_editarmature.h"
|
||||||
|
|
||||||
//------------------UNDECLARED EXTERNAL PROTOTYPES--------------------
|
//------------------EXTERNAL PROTOTYPES--------------------
|
||||||
//These are evil 'extern' declarations for functions with no anywhere
|
|
||||||
extern void free_editArmature(void);
|
extern void free_editArmature(void);
|
||||||
extern void make_boneList(ListBase* list, ListBase *bones, EditBone *parent);
|
extern void make_boneList(ListBase* list, ListBase *bones, EditBone *parent);
|
||||||
extern void editbones_to_armature (ListBase *list, Object *ob);
|
extern void editbones_to_armature (ListBase *list, Object *ob);
|
||||||
|
@ -40,8 +40,8 @@
|
|||||||
//-------------------MODULE INIT---------------------------------
|
//-------------------MODULE INIT---------------------------------
|
||||||
PyObject *Armature_Init( void );
|
PyObject *Armature_Init( void );
|
||||||
//-------------------TYPEOBJECT----------------------------------
|
//-------------------TYPEOBJECT----------------------------------
|
||||||
PyTypeObject Armature_Type;
|
extern PyTypeObject Armature_Type;
|
||||||
PyTypeObject BonesDict_Type;
|
extern PyTypeObject BonesDict_Type;
|
||||||
//-------------------STRUCT DEFINITION---------------------------
|
//-------------------STRUCT DEFINITION---------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -38,8 +38,8 @@
|
|||||||
#define BoneObject_Check(v) ((v)->ob_type == &Bone_Type)
|
#define BoneObject_Check(v) ((v)->ob_type == &Bone_Type)
|
||||||
#define EditBoneObject_Check(v) ((v)->ob_type == &EditBone_Type)
|
#define EditBoneObject_Check(v) ((v)->ob_type == &EditBone_Type)
|
||||||
//-------------------TYPEOBJECT----------------------------------
|
//-------------------TYPEOBJECT----------------------------------
|
||||||
PyTypeObject EditBone_Type;
|
extern PyTypeObject EditBone_Type;
|
||||||
PyTypeObject Bone_Type;
|
extern PyTypeObject Bone_Type;
|
||||||
//-------------------STRUCT DEFINITION----------------------------
|
//-------------------STRUCT DEFINITION----------------------------
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
/** NLA module initialization function. */
|
/** NLA module initialization function. */
|
||||||
PyObject *NLA_Init( void );
|
PyObject *NLA_Init( void );
|
||||||
|
|
||||||
PyTypeObject Action_Type;
|
extern PyTypeObject Action_Type;
|
||||||
|
|
||||||
/** Python BPy_NLA structure definition. */
|
/** Python BPy_NLA structure definition. */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -39,9 +39,9 @@
|
|||||||
#define PoseBoneObject_Check(v) ((v)->ob_type == &PoseBone_Type)
|
#define PoseBoneObject_Check(v) ((v)->ob_type == &PoseBone_Type)
|
||||||
#define PoseBonesDictObject_Check(v) ((v)->ob_type == &PoseBonesDict_Type)
|
#define PoseBonesDictObject_Check(v) ((v)->ob_type == &PoseBonesDict_Type)
|
||||||
//-------------------TYPEOBJECT----------------------------------
|
//-------------------TYPEOBJECT----------------------------------
|
||||||
PyTypeObject Pose_Type;
|
extern PyTypeObject Pose_Type;
|
||||||
PyTypeObject PoseBone_Type;
|
extern PyTypeObject PoseBone_Type;
|
||||||
PyTypeObject PoseBonesDict_Type;
|
extern PyTypeObject PoseBonesDict_Type;
|
||||||
//-------------------STRUCT DEFINITION----------------------------
|
//-------------------STRUCT DEFINITION----------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
Loading…
Reference in New Issue
Block a user