Fix broken comment about our WM progress report for python (its not a progress bar at all).
This commit is contained in:
parent
52d074ba39
commit
3751eb18c3
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue