diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-24 19:19:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-24 19:19:15 +0300 |
commit | f28975dbc493288403bf26e5018213c21a2e131c (patch) | |
tree | 43d4b9ce5ed86bbcee24e405befcb2a63de2680a /source/blender/python/intern | |
parent | 6d7bb6593f472e297558b0ad67716224ed77c135 (diff) |
avoid operator type lookups when its known
Diffstat (limited to 'source/blender/python/intern')
-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; |