Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2010-02-13 00:40:46 +0300
committerMartin Poirier <theeth@yahoo.com>2010-02-13 00:40:46 +0300
commitc7662c1cf750ada5e3c64aed6b4730756e96b3fe (patch)
tree63f32ce6625714e06164cbee83d775538613d1fb /source/blender/python/intern/bpy_operator.c
parent533ed7cdaa722e0d41c2a290204b37c3761b9d3a (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.c2
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);