Fix: Curves select all operator name

The operator is used for edit mode and sculpt mode, so it
shouldn't have the sculpt prefix.
This commit is contained in:
Hans Goudey 2023-01-13 10:47:24 -06:00
parent 761e6b1b78
commit 046d1a414b
3 changed files with 7 additions and 7 deletions

View File

@ -5636,7 +5636,7 @@ def km_sculpt_curves(params):
("curves.set_selection_domain", {"type": 'ONE', "value": 'PRESS'}, {"properties": [("domain", 'POINT')]}),
("curves.set_selection_domain", {"type": 'TWO', "value": 'PRESS'}, {"properties": [("domain", 'CURVE')]}),
*_template_paint_radial_control("curves_sculpt"),
*_template_items_select_actions(params, "sculpt_curves.select_all"),
*_template_items_select_actions(params, "curves.select_all"),
("sculpt_curves.min_distance_edit", {"type": 'R', "value": 'PRESS', "shift": True}, {}),
("sculpt_curves.select_grow", {"type": 'A', "value": 'PRESS', "shift": True}, {}),
])

View File

@ -2053,9 +2053,9 @@ class VIEW3D_MT_select_sculpt_curves(Menu):
def draw(self, _context):
layout = self.layout
layout.operator("sculpt_curves.select_all", text="All").action = 'SELECT'
layout.operator("sculpt_curves.select_all", text="None").action = 'DESELECT'
layout.operator("sculpt_curves.select_all", text="Invert").action = 'INVERT'
layout.operator("curves.select_all", text="All").action = 'SELECT'
layout.operator("curves.select_all", text="None").action = 'DESELECT'
layout.operator("curves.select_all", text="Invert").action = 'INVERT'
layout.operator("sculpt_curves.select_random", text="Random")
layout.operator("sculpt_curves.select_end", text="Endpoints")
layout.operator("sculpt_curves.select_grow", text="Grow")

View File

@ -923,10 +923,10 @@ static int select_all_exec(bContext *C, wmOperator *op)
} // namespace select_all
static void SCULPT_CURVES_OT_select_all(wmOperatorType *ot)
static void CURVES_OT_select_all(wmOperatorType *ot)
{
ot->name = "(De)select All";
ot->idname = __func__;
ot->idname = "CURVES_OT_select_all";
ot->description = "(De)select all control points";
ot->exec = select_all::select_all_exec;
@ -1029,6 +1029,6 @@ void ED_operatortypes_curves()
WM_operatortype_append(CURVES_OT_convert_from_particle_system);
WM_operatortype_append(CURVES_OT_snap_curves_to_surface);
WM_operatortype_append(CURVES_OT_set_selection_domain);
WM_operatortype_append(SCULPT_CURVES_OT_select_all);
WM_operatortype_append(CURVES_OT_select_all);
WM_operatortype_append(CURVES_OT_surface_set);
}