Merge branch 'master' into blender2.8
This commit is contained in:
@@ -124,7 +124,7 @@ static PyObject *bpy_app_handlers_persistent_new(PyTypeObject *UNUSED(type), PyO
|
||||
/* dummy type because decorators can't be PyCFunctions */
|
||||
static PyTypeObject BPyPersistent_Type = {
|
||||
|
||||
#if defined(_MSC_VER) || defined(FREE_WINDOWS)
|
||||
#if defined(_MSC_VER)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
||||
@@ -204,7 +204,7 @@ PyObject *BPY_app_handlers_struct(void)
|
||||
{
|
||||
PyObject *ret;
|
||||
|
||||
#if defined(_MSC_VER) || defined(FREE_WINDOWS)
|
||||
#if defined(_MSC_VER)
|
||||
BPyPersistent_Type.ob_base.ob_base.ob_type = &PyType_Type;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -5692,7 +5692,7 @@ PyTypeObject pyrna_struct_meta_idprop_Type = {
|
||||
NULL, /* struct PyMethodDef *tp_methods; */
|
||||
NULL, /* struct PyMemberDef *tp_members; */
|
||||
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||
#if defined(_MSC_VER) || defined(FREE_WINDOWS)
|
||||
#if defined(_MSC_VER)
|
||||
NULL, /* defer assignment */
|
||||
#else
|
||||
&PyType_Type, /* struct _typeobject *tp_base; */
|
||||
@@ -6267,7 +6267,7 @@ static PyTypeObject pyrna_prop_collection_iter_Type = {
|
||||
NULL, /* reprfunc tp_str; */
|
||||
|
||||
/* will only use these if this is a subtype of a py class */
|
||||
#if defined(_MSC_VER) || defined(FREE_WINDOWS)
|
||||
#if defined(_MSC_VER)
|
||||
NULL, /* defer assignment */
|
||||
#else
|
||||
PyObject_GenericGetAttr, /* getattrofunc tp_getattro; */
|
||||
@@ -6300,7 +6300,7 @@ static PyTypeObject pyrna_prop_collection_iter_Type = {
|
||||
#endif
|
||||
/*** Added in release 2.2 ***/
|
||||
/* Iterators */
|
||||
#if defined(_MSC_VER) || defined(FREE_WINDOWS)
|
||||
#if defined(_MSC_VER)
|
||||
NULL, /* defer assignment */
|
||||
#else
|
||||
PyObject_SelfIter, /* getiterfunc tp_iter; */
|
||||
@@ -6776,7 +6776,7 @@ void BPY_rna_init(void)
|
||||
#endif
|
||||
|
||||
/* for some reason MSVC complains of these */
|
||||
#if defined(_MSC_VER) || defined(FREE_WINDOWS)
|
||||
#if defined(_MSC_VER)
|
||||
pyrna_struct_meta_idprop_Type.tp_base = &PyType_Type;
|
||||
|
||||
pyrna_prop_collection_iter_Type.tp_iter = PyObject_SelfIter;
|
||||
|
||||
Reference in New Issue
Block a user