diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-02-13 00:40:46 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-02-13 00:40:46 +0300 |
commit | c7662c1cf750ada5e3c64aed6b4730756e96b3fe (patch) | |
tree | 63f32ce6625714e06164cbee83d775538613d1fb /source/blender/python/intern/bpy_operator.c | |
parent | 533ed7cdaa722e0d41c2a290204b37c3761b9d3a (diff) |
Calling operators from Python with non-default context was broken (need to assign to the right variable).
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index e9723297ff4..b2a8f5be097 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -72,7 +72,7 @@ static PyObject *pyop_call( PyObject * self, PyObject * args) } if(context_str) { - if(RNA_enum_value_from_id(operator_context_items, context_str, &operator_ret)==0) { + if(RNA_enum_value_from_id(operator_context_items, context_str, &context)==0) { char *enum_str= BPy_enum_as_string(operator_context_items); PyErr_Format(PyExc_TypeError, "Calling operator \"bpy.ops.%s\" error, expected a string enum in (%.200s)", opname, enum_str); MEM_freeN(enum_str); |