Cleanup: spin redo naming changes
This commit is contained in:
@@ -146,7 +146,7 @@ static int edbm_spin_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(e
|
||||
if (ret & OPERATOR_FINISHED) {
|
||||
/* Setup gizmos */
|
||||
if (v3d && ((v3d->gizmo_flag & V3D_GIZMO_HIDE) == 0)) {
|
||||
wmGizmoGroupType *gzgt = WM_gizmogrouptype_find("MESH_GGT_spin", false);
|
||||
wmGizmoGroupType *gzgt = WM_gizmogrouptype_find("MESH_GGT_spin_redo", false);
|
||||
if (!WM_gizmo_group_type_ensure_ptr(gzgt)) {
|
||||
struct Main *bmain = CTX_data_main(C);
|
||||
WM_gizmo_group_type_reinit_ptr(bmain, gzgt);
|
||||
@@ -187,6 +187,6 @@ void MESH_OT_spin(wmOperatorType *ot)
|
||||
RNA_def_float_vector(ot->srna, "axis", 3, NULL, -1.0f, 1.0f, "Axis", "Axis in global view space", -1.0f, 1.0f);
|
||||
|
||||
#ifdef USE_GIZMO
|
||||
WM_gizmogrouptype_append(MESH_GGT_spin);
|
||||
WM_gizmogrouptype_append(MESH_GGT_spin_redo);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -412,10 +412,10 @@ static void gizmo_mesh_spin_draw_prepare(
|
||||
gizmo_mesh_spin_update_from_op(ggd);
|
||||
}
|
||||
|
||||
void MESH_GGT_spin(struct wmGizmoGroupType *gzgt)
|
||||
void MESH_GGT_spin_redo(struct wmGizmoGroupType *gzgt)
|
||||
{
|
||||
gzgt->name = "Mesh Spin";
|
||||
gzgt->idname = "MESH_GGT_spin";
|
||||
gzgt->name = "Mesh Spin Redo";
|
||||
gzgt->idname = "MESH_GGT_spin_redo";
|
||||
|
||||
gzgt->flag = WM_GIZMOGROUPTYPE_3D;
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ void MESH_OT_screw(struct wmOperatorType *ot);
|
||||
/* *** editmesh_extrude_spin.c *** */
|
||||
void MESH_OT_spin(struct wmOperatorType *ot);
|
||||
/* *** editmesh_extrude_spin_gizmo.c *** */
|
||||
void MESH_GGT_spin(struct wmGizmoGroupType *gzgt);
|
||||
void MESH_GGT_spin_redo(struct wmGizmoGroupType *gzgt);
|
||||
|
||||
/* *** editmesh_polybuild.c *** */
|
||||
void MESH_OT_polybuild_face_at_cursor(struct wmOperatorType *ot);
|
||||
|
||||
Reference in New Issue
Block a user