* Improved error checking in BPY_interface.c:
Applied a fix suggested by Guignot * Added part of Module Blender.Scene. * Added doxygen comments to Camera.c .
This commit is contained in:
@@ -39,6 +39,12 @@
|
||||
#include "constant.h"
|
||||
#include "gen_utils.h"
|
||||
|
||||
/* The Camera PyType Object defined in Camera.c */
|
||||
PyTypeObject Camera_Type;
|
||||
|
||||
#define BPy_Camera_Check(v) \
|
||||
((v)->ob_type == &Camera_Type) /* for type checking */
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Python BPy_Camera structure definition: */
|
||||
/*****************************************************************************/
|
||||
@@ -47,11 +53,6 @@ typedef struct {
|
||||
Camera *camera;
|
||||
} BPy_Camera;
|
||||
|
||||
PyTypeObject Camera_Type; /* The Camera PyType Object */
|
||||
|
||||
#define BPy_Camera_Check(v) \
|
||||
((v)->ob_type == &Camera_Type) /* for type checking */
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Python Camera_Type helper functions needed by Blender (the Init function) */
|
||||
/* and Object modules. */
|
||||
|
Reference in New Issue
Block a user