rna_define.c, RNA_def_struct - set the py_type to NULL when making an rna struct...
[blender.git] / source / blender / python / intern / bpy_util.c
index 8fcade0911dff89e1d419a0149c9e262703b2f3a..c447e7de9823fb904f4651a5aaceb214036b2d5c 100644 (file)
@@ -166,6 +166,8 @@ void PyObSpit(char *name, PyObject *var) {
        }
        else {
                PyObject_Print(var, stderr, 0);
+               fprintf(stderr, " ref:%d ", var->ob_refcnt);
+               fprintf(stderr, " ptr:%ld", (long)var);
        }
        fprintf(stderr, "\n");
 }