Fix some mesh edition macro operators incorrectly setting an empty description string.
No operator or macro should be missing description. But if they do, then they should use NULL pointer, and not an empty string. This behavior was already enforced (through an assert) for operators, previous commit made it the same for macros.
This commit is contained in:
parent
bae1b64525
commit
07a77816a1
|
@ -336,7 +336,7 @@ void ED_operatormacros_mesh(void)
|
|||
|
||||
ot = WM_operatortype_append_macro("MESH_OT_polybuild_face_at_cursor_move",
|
||||
"Face at Cursor Move",
|
||||
"",
|
||||
NULL,
|
||||
OPTYPE_UNDO | OPTYPE_REGISTER);
|
||||
WM_operatortype_macro_define(ot, "MESH_OT_polybuild_face_at_cursor");
|
||||
otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||
|
@ -345,7 +345,7 @@ void ED_operatormacros_mesh(void)
|
|||
|
||||
ot = WM_operatortype_append_macro("MESH_OT_polybuild_split_at_cursor_move",
|
||||
"Split at Cursor Move",
|
||||
"",
|
||||
NULL,
|
||||
OPTYPE_UNDO | OPTYPE_REGISTER);
|
||||
WM_operatortype_macro_define(ot, "MESH_OT_polybuild_split_at_cursor");
|
||||
otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||
|
@ -354,7 +354,7 @@ void ED_operatormacros_mesh(void)
|
|||
|
||||
ot = WM_operatortype_append_macro("MESH_OT_polybuild_transform_at_cursor_move",
|
||||
"Transform at Cursor Move",
|
||||
"",
|
||||
NULL,
|
||||
OPTYPE_UNDO | OPTYPE_REGISTER);
|
||||
WM_operatortype_macro_define(ot, "MESH_OT_polybuild_transform_at_cursor");
|
||||
otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||
|
@ -363,7 +363,7 @@ void ED_operatormacros_mesh(void)
|
|||
|
||||
ot = WM_operatortype_append_macro("MESH_OT_polybuild_extrude_at_cursor_move",
|
||||
"Extrude at Cursor Move",
|
||||
"",
|
||||
NULL,
|
||||
OPTYPE_UNDO | OPTYPE_REGISTER);
|
||||
WM_operatortype_macro_define(ot, "MESH_OT_polybuild_transform_at_cursor");
|
||||
otmacro = WM_operatortype_macro_define(ot, "MESH_OT_extrude_edges_indiv");
|
||||
|
|
Loading…
Reference in New Issue