RNA: fix crash in python code, forgot to update this part in a previous commit.

This commit is contained in:
2009-01-08 15:29:09 +00:00
parent bebe874a5b
commit 8140c76ac6
3 changed files with 9 additions and 7 deletions

View File

@@ -164,7 +164,9 @@ PyObject *pyop_func_get_rna(BPy_OperatorFunc *self)
pyrna= (BPy_StructRNA *)pyrna_struct_CreatePyObject(&ptr); /* were not really using &ptr, overwite next */
/* XXX POINTER - if this 'ot' is python generated, it could be free'd */
RNA_pointer_create(NULL, NULL, ot->srna, &pyrna->properties, &pyrna->ptr);
RNA_pointer_create(NULL, ot->srna, NULL, &pyrna->ptr);
pyrna->freeptr= 1;
return (PyObject *)pyrna;
}