RNA: fix crash in python code, forgot to update this part in a previous commit.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user