Cleanup: rename extrude gizmo
This commit is contained in:
parent
d3a75c48fd
commit
6aa7cea3c2
|
@ -65,10 +65,10 @@ def generate_from_enum_ex(
|
|||
|
||||
# Use for shared widget data.
|
||||
class _template_widget:
|
||||
class MESH_GGT_extrude:
|
||||
class VIEW3D_GGT_xform_extrude:
|
||||
@staticmethod
|
||||
def draw_settings(context, layout, tool):
|
||||
props = tool.gizmo_group_properties("MESH_GGT_extrude")
|
||||
props = tool.gizmo_group_properties("VIEW3D_GGT_xform_extrude")
|
||||
layout.prop(props, "axis_type", expand=True)
|
||||
|
||||
|
||||
|
@ -364,9 +364,9 @@ class _defs_edit_armature:
|
|||
return dict(
|
||||
text="Extrude",
|
||||
icon="ops.armature.extrude_move",
|
||||
widget="MESH_GGT_extrude",
|
||||
widget="VIEW3D_GGT_xform_extrude",
|
||||
keymap=(),
|
||||
draw_settings=_template_widget.MESH_GGT_extrude.draw_settings,
|
||||
draw_settings=_template_widget.VIEW3D_GGT_xform_extrude.draw_settings,
|
||||
)
|
||||
|
||||
@ToolDef.from_fn
|
||||
|
@ -526,11 +526,11 @@ class _defs_edit_mesh:
|
|||
"Extrude freely or along an axis"
|
||||
),
|
||||
icon="ops.mesh.extrude_region_move",
|
||||
widget="MESH_GGT_extrude",
|
||||
widget="VIEW3D_GGT_xform_extrude",
|
||||
# Important to use same operator as 'E' key.
|
||||
operator="view3d.edit_mesh_extrude_move_normal",
|
||||
keymap=(),
|
||||
draw_settings=_template_widget.MESH_GGT_extrude.draw_settings,
|
||||
draw_settings=_template_widget.VIEW3D_GGT_xform_extrude.draw_settings,
|
||||
)
|
||||
|
||||
@ToolDef.from_fn
|
||||
|
@ -740,9 +740,9 @@ class _defs_edit_curve:
|
|||
return dict(
|
||||
text="Extrude",
|
||||
icon="ops.curve.extrude_move",
|
||||
widget="MESH_GGT_extrude",
|
||||
widget="VIEW3D_GGT_xform_extrude",
|
||||
keymap=(),
|
||||
draw_settings=_template_widget.MESH_GGT_extrude.draw_settings,
|
||||
draw_settings=_template_widget.VIEW3D_GGT_xform_extrude.draw_settings,
|
||||
)
|
||||
|
||||
@ToolDef.from_fn
|
||||
|
|
|
@ -167,7 +167,7 @@ void VIEW3D_GGT_xform_cage(struct wmGizmoGroupType *gzgt);
|
|||
void VIEW3D_GGT_xform_shear(struct wmGizmoGroupType *gzgt);
|
||||
|
||||
/* *** transform_gizmo_extrude_3d.c *** */
|
||||
void MESH_GGT_extrude(struct wmGizmoGroupType *gzgt);
|
||||
void VIEW3D_GGT_xform_extrude(struct wmGizmoGroupType *gzgt);
|
||||
|
||||
bool ED_widgetgroup_gizmo2d_poll(const struct bContext *C, struct wmGizmoGroupType *gzgt);
|
||||
void ED_widgetgroup_gizmo2d_setup(const struct bContext *C, struct wmGizmoGroup *gzgroup);
|
||||
|
|
|
@ -704,9 +704,9 @@ static void view3d_widgets(void)
|
|||
WM_gizmogrouptype_append(TRANSFORM_GGT_gizmo);
|
||||
WM_gizmogrouptype_append(VIEW3D_GGT_xform_cage);
|
||||
WM_gizmogrouptype_append(VIEW3D_GGT_xform_shear);
|
||||
WM_gizmogrouptype_append(VIEW3D_GGT_xform_extrude);
|
||||
WM_gizmogrouptype_append(VIEW3D_GGT_mesh_preselect_elem);
|
||||
WM_gizmogrouptype_append(VIEW3D_GGT_mesh_preselect_edgering);
|
||||
WM_gizmogrouptype_append(MESH_GGT_extrude);
|
||||
|
||||
WM_gizmogrouptype_append(VIEW3D_GGT_ruler);
|
||||
WM_gizmotype_append(VIEW3D_GT_ruler_item);
|
||||
|
|
|
@ -393,10 +393,10 @@ static void gizmo_mesh_extrude_message_subscribe(
|
|||
&msg_sub_value_gz_tag_refresh, __func__);
|
||||
}
|
||||
|
||||
void MESH_GGT_extrude(struct wmGizmoGroupType *gzgt)
|
||||
void VIEW3D_GGT_xform_extrude(struct wmGizmoGroupType *gzgt)
|
||||
{
|
||||
gzgt->name = "Mesh Extrude";
|
||||
gzgt->idname = "MESH_GGT_extrude";
|
||||
gzgt->name = "3D View Extrude";
|
||||
gzgt->idname = "VIEW3D_GGT_xform_extrude";
|
||||
|
||||
gzgt->flag = WM_GIZMOGROUPTYPE_3D;
|
||||
|
||||
|
|
Loading…
Reference in New Issue