Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_props.c
| Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | static PyObject *bpy_prop_deferred_data_CreatePyObject(PyObject *fn, PyObject *kw) | ||||
| self->fn = fn; | self->fn = fn; | ||||
| if (kw == NULL) { | if (kw == NULL) { | ||||
| kw = PyDict_New(); | kw = PyDict_New(); | ||||
| } | } | ||||
| else { | else { | ||||
| Py_INCREF(kw); | Py_INCREF(kw); | ||||
| } | } | ||||
| self->kw = kw; | self->kw = kw; | ||||
| BLI_assert(!PyObject_GC_IsTracked((PyObject *)self)); | |||||
| PyObject_GC_Track(self); | PyObject_GC_Track(self); | ||||
| return (PyObject *)self; | return (PyObject *)self; | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Shared Property Utilities | /** \name Shared Property Utilities | ||||
| ▲ Show 20 Lines • Show All 4,371 Lines • Show Last 20 Lines | |||||