diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-13 13:25:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-13 13:25:50 +0400 |
commit | 1add07821b738c1efcb1d49c1c7f76b2594f7a42 (patch) | |
tree | 33843ebedcfe33d150806f3f2b414a828922bdf0 /source/blender/python | |
parent | 5b55934c79542858b7fdf61e243007d3cad6a181 (diff) |
fix [#30925] successful import of keyconfig dependant on current object context?
revert r34885,
The hack was to fix poselib UI but is REALLY BAD - don't modify properties when accessing them.
This bug must be fixed some other way.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index aea22b3a1b4..7259ea8e2f5 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -1152,10 +1152,6 @@ static int pyrna_string_to_enum(PyObject *item, PointerRNA *ptr, PropertyRNA *pr return -1; } else { - /* hack so that dynamic enums used for operator properties will be able to be built (i.e. context will be supplied to itemf) - * and thus running defining operator buttons for such operators in UI will work */ - RNA_def_property_clear_flag(prop, PROP_ENUM_NO_CONTEXT); - if (!RNA_property_enum_value(BPy_GetContext(), ptr, prop, param, val)) { const char *enum_str = pyrna_enum_as_string(ptr, prop); PyErr_Format(PyExc_TypeError, |