[Bf-blender-cvs] [3751eb1] master: Fix broken comment about our WM progress report for python (its not a progress bar at all).

Bastien Montagne noreply at git.blender.org
Mon Oct 26 14:11:15 CET 2015


Commit: 3751eb18c3156589fdb6296c1cc6ab0e9ec8b4d4
Author: Bastien Montagne
Date:   Mon Oct 26 14:10:25 2015 +0100
Branches: master
https://developer.blender.org/rB3751eb18c3156589fdb6296c1cc6ab0e9ec8b4d4

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 1fccf0f..e9bc0f9 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -1093,7 +1093,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");




More information about the Bf-blender-cvs mailing list