[Bf-blender-cvs] [582928f0812] temp-spreadsheet-row-filter: Give operators more specific names
Hans Goudey
noreply at git.blender.org
Mon Apr 19 23:53:37 CEST 2021
Commit: 582928f0812304ff067e685c06c4972002e273d5
Author: Hans Goudey
Date: Mon Apr 19 16:46:26 2021 -0500
Branches: temp-spreadsheet-row-filter
https://developer.blender.org/rB582928f0812304ff067e685c06c4972002e273d5
Give operators more specific names
===================================================================
M source/blender/editors/space_spreadsheet/spreadsheet_ops.cc
===================================================================
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc b/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc
index 0d19e3f1a41..fcbc37346e6 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc
@@ -45,11 +45,11 @@ static int row_filter_add_exec(bContext *C, wmOperator *UNUSED(op))
return OPERATOR_FINISHED;
}
-static void SPREADSHEET_OT_add_rule(wmOperatorType *ot)
+static void SPREADSHEET_OT_add_row_filter_rule(wmOperatorType *ot)
{
ot->name = "Add Row Filter";
ot->description = "Add a filter to remove rows from the displayed data";
- ot->idname = "SPREADSHEET_OT_add_rule";
+ ot->idname = "SPREADSHEET_OT_add_row_filter_rule";
ot->exec = row_filter_add_exec;
ot->poll = ED_operator_spreadsheet_active;
@@ -75,11 +75,11 @@ static int row_filter_remove_exec(bContext *C, wmOperator *op)
return OPERATOR_FINISHED;
}
-static void SPREADSHEET_OT_remove_rule(wmOperatorType *ot)
+static void SPREADSHEET_OT_remove_row_filter_rule(wmOperatorType *ot)
{
ot->name = "Remove Row Filter";
ot->description = "Remove a row filter from the rules";
- ot->idname = "SPREADSHEET_OT_remove_rule";
+ ot->idname = "SPREADSHEET_OT_remove_row_filter_rule";
ot->exec = row_filter_remove_exec;
ot->poll = ED_operator_spreadsheet_active;
@@ -91,6 +91,6 @@ static void SPREADSHEET_OT_remove_rule(wmOperatorType *ot)
void spreadsheet_operatortypes()
{
- WM_operatortype_append(SPREADSHEET_OT_add_rule);
- WM_operatortype_append(SPREADSHEET_OT_remove_rule);
+ WM_operatortype_append(SPREADSHEET_OT_add_row_filter_rule);
+ WM_operatortype_append(SPREADSHEET_OT_remove_row_filter_rule);
}
More information about the Bf-blender-cvs
mailing list