Cleanup: GPv3: Use consistent modifier RNA names

"GREASEPENCIL_" changed to "GREASE_PENCIL_".
This commit is contained in:
YimingWu 2024-01-24 21:19:18 +08:00
parent aca0cf27e3
commit b6e5b02ede
2 changed files with 4 additions and 4 deletions

@ -150,7 +150,7 @@ class OBJECT_MT_modifier_add_generate(ModifierAddMenu, Menu):
if ob_type == 'MESH':
self.operator_modifier_add(layout, 'WIREFRAME')
if ob_type == 'GREASEPENCIL':
self.operator_modifier_add(layout, 'GREASEPENCIL_SUBDIV')
self.operator_modifier_add(layout, 'GREASE_PENCIL_SUBDIV')
layout.template_modifier_asset_menu_items(catalog_path=self.bl_label)
@ -188,7 +188,7 @@ class OBJECT_MT_modifier_add_deform(ModifierAddMenu, Menu):
if ob_type == 'VOLUME':
self.operator_modifier_add(layout, 'VOLUME_DISPLACE')
if ob_type == 'GREASEPENCIL':
self.operator_modifier_add(layout, 'GREASEPENCIL_SMOOTH')
self.operator_modifier_add(layout, 'GREASE_PENCIL_SMOOTH')
layout.template_modifier_asset_menu_items(catalog_path=self.bl_label)

@ -212,7 +212,7 @@ const EnumPropertyItem rna_enum_object_modifier_type_items[] = {
"Wireframe",
"Convert faces into thickened edges"},
{eModifierType_GreasePencilSubdiv,
"GREASEPENCIL_SUBDIV",
"GREASE_PENCIL_SUBDIV",
ICON_MOD_SUBSURF,
"Subdivide strokes",
"Grease Pencil subdivide modifier"},
@ -297,7 +297,7 @@ const EnumPropertyItem rna_enum_object_modifier_type_items[] = {
"Volume Displace",
"Deform volume based on noise or other vector fields"}, /* TODO: Use correct icon. */
{eModifierType_GreasePencilSmooth,
"GREASEPENCIL_SMOOTH",
"GREASE_PENCIL_SMOOTH",
ICON_SMOOTHCURVE,
"Smooth",
"Smooth grease pencil strokes"},