Commit: 13c473f70704689e177a2da85c1d284db4f962bb
Author: Bastien Montagne
Date:   Mon Oct 26 14:10:25 2015 +0100
Branches: blender-v2.76-release
https://developer.blender.org/rB13c473f70704689e177a2da85c1d284db4f962bb

Fix broken comment about our WM progress report for python (its not a progress 
bar at all).

===================================================================

M       source/blender/editors/interface/interface.c
M       source/blender/makesrna/intern/rna_wm_api.c

===================================================================

diff --git a/source/blender/editors/interface/interface.c 
b/source/blender/editors/interface/interface.c
index 7802161..671c590 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -1100,7 +1100,7 @@ static bool ui_but_event_property_operator_string(const 
bContext *C, uiBut *but,
                        
                        /* check each until one works... */
                        for (i = 0; (i < num_ops) && (ctx_toggle_opnames[i]); 
i++) {
-                               //printf("\t%s\n", ctx_toggle_opnames[i]);
+                               printf("\t%s\n", ctx_toggle_opnames[i]);
                                if (WM_key_event_operator_string(C, 
ctx_toggle_opnames[i], WM_OP_INVOKE_REGION_WIN, prop_path, false,
                                                                 buf_len, buf))
                                {
diff --git a/source/blender/makesrna/intern/rna_wm_api.c 
b/source/blender/makesrna/intern/rna_wm_api.c
index e819d33..e2fa053 100644
--- a/source/blender/makesrna/intern/rna_wm_api.c
+++ b/source/blender/makesrna/intern/rna_wm_api.c
@@ -420,7 +420,7 @@ void RNA_api_wm(StructRNA *srna)
 
        /* Progress bar interface */
        func = RNA_def_function(srna, "progress_begin", "rna_progress_begin");
-       RNA_def_function_ui_description(func, "Start Progress bar");
+       RNA_def_function_ui_description(func, "Start progress report");
 
        parm = RNA_def_property(func, "min", PROP_FLOAT, PROP_NONE);
        RNA_def_property_ui_text(parm, "min", "any value in range [0,9999]");
@@ -436,7 +436,7 @@ void RNA_api_wm(StructRNA *srna)
        RNA_def_property_ui_text(parm, "value", "any value between min and max 
as set in progress_begin()");
 
        func = RNA_def_function(srna, "progress_end", "rna_progress_end");
-       RNA_def_function_ui_description(func, "Terminate Progress bar");
+       RNA_def_function_ui_description(func, "Terminate progress report");
 
        /* invoke functions, for use with python */
        func = RNA_def_function(srna, "invoke_props_popup", 
"rna_Operator_props_popup");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to