diff options
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index c2504ed2c50..6ae63f2ab65 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -230,7 +230,9 @@ static PyObject *pyop_getrna(PyObject *self, PyObject *value) //RNA_pointer_create(NULL, &RNA_Struct, ot->srna, &ptr); /* XXX - should call WM_operator_properties_free */ - WM_operator_properties_create(&ptr, ot->idname); + WM_operator_properties_create_ptr(&ptr, ot); + + pyrna= (BPy_StructRNA *)pyrna_struct_CreatePyObject(&ptr); pyrna->freeptr= TRUE; return (PyObject *)pyrna; |