2.5/RNA:
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index 41613d0ab78131a849b2cd9dfd8c438a1e0b3fba..dd4728d97affd2fb785599e8a4f39896b83a48c6 100644 (file)
@@ -345,7 +345,7 @@ void WM_operator_bl_idname(char *to, const char *from)
  * When calling from an existing wmOperator do.
  * WM_operator_pystring(op->type, op->ptr);
  */
-char *WM_operator_pystring(wmOperatorType *ot, PointerRNA *opptr, int all_args)
+char *WM_operator_pystring(bContext *C, wmOperatorType *ot, PointerRNA *opptr, int all_args)
 {
        const char *arg_name= NULL;
        char idname_py[OP_MAX_TYPENAME];
@@ -378,7 +378,7 @@ char *WM_operator_pystring(wmOperatorType *ot, PointerRNA *opptr, int all_args)
 
                if (strcmp(arg_name, "rna_type")==0) continue;
 
-               buf= RNA_property_as_string(opptr, prop);
+               buf= RNA_property_as_string(C, opptr, prop);
                
                ok= 1;
 
@@ -388,7 +388,7 @@ char *WM_operator_pystring(wmOperatorType *ot, PointerRNA *opptr, int all_args)
                        prop_default= RNA_struct_find_property(&opptr_default, arg_name);
 
                        if(prop_default) {
-                               buf_default= RNA_property_as_string(&opptr_default, prop_default);
+                               buf_default= RNA_property_as_string(C, &opptr_default, prop_default);
 
                                if(strcmp(buf, buf_default)==0)
                                        ok= 0; /* values match, dont bother printing */