Cleanup: use 'mesh' in preselect identifiers

We may have preselection for other types later.
This commit is contained in:
2018-09-10 14:44:15 +10:00
parent 0c2001e5ef
commit fc06bd7236
2 changed files with 8 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ static bool WIDGETGROUP_mesh_preselect_elem_poll(const bContext *C, wmGizmoGroup
static void WIDGETGROUP_mesh_preselect_elem_setup(const bContext *UNUSED(C), wmGizmoGroup *gzgroup)
{
const wmGizmoType *gzt_presel = WM_gizmotype_find("GIZMO_GT_preselect_elem_3d", true);
const wmGizmoType *gzt_presel = WM_gizmotype_find("GIZMO_GT_mesh_preselect_elem_3d", true);
struct GizmoGroupPreSelElem *man = MEM_callocN(sizeof(struct GizmoGroupPreSelElem), __func__);
gzgroup->customdata = man;
@@ -111,7 +111,7 @@ static bool WIDGETGROUP_mesh_preselect_edgering_poll(const bContext *C, wmGizmoG
static void WIDGETGROUP_mesh_preselect_edgering_setup(const bContext *UNUSED(C), wmGizmoGroup *gzgroup)
{
const wmGizmoType *gzt_presel = WM_gizmotype_find("GIZMO_GT_preselect_edgering_3d", true);
const wmGizmoType *gzt_presel = WM_gizmotype_find("GIZMO_GT_mesh_preselect_edgering_3d", true);
struct GizmoGroupPreSelEdgeRing *man = MEM_callocN(sizeof(struct GizmoGroupPreSelEdgeRing), __func__);
gzgroup->customdata = man;

View File

@@ -233,10 +233,10 @@ static int gizmo_preselect_elem_invoke(
return OPERATOR_PASS_THROUGH;
}
static void GIZMO_GT_preselect_elem_3d(wmGizmoType *gzt)
static void GIZMO_GT_mesh_preselect_elem_3d(wmGizmoType *gzt)
{
/* identifiers */
gzt->idname = "GIZMO_GT_preselect_elem_3d";
gzt->idname = "GIZMO_GT_mesh_preselect_elem_3d";
/* api callbacks */
gzt->invoke = gizmo_preselect_elem_invoke;
@@ -394,10 +394,10 @@ static int gizmo_preselect_edgering_invoke(
}
static void GIZMO_GT_preselect_edgering_3d(wmGizmoType *gzt)
static void GIZMO_GT_mesh_preselect_edgering_3d(wmGizmoType *gzt)
{
/* identifiers */
gzt->idname = "GIZMO_GT_preselect_edgering_3d";
gzt->idname = "GIZMO_GT_mesh_preselect_edgering_3d";
/* api callbacks */
gzt->invoke = gizmo_preselect_edgering_invoke;
@@ -422,8 +422,8 @@ static void GIZMO_GT_preselect_edgering_3d(wmGizmoType *gzt)
void ED_gizmotypes_preselect_3d(void)
{
WM_gizmotype_append(GIZMO_GT_preselect_elem_3d);
WM_gizmotype_append(GIZMO_GT_preselect_edgering_3d);
WM_gizmotype_append(GIZMO_GT_mesh_preselect_elem_3d);
WM_gizmotype_append(GIZMO_GT_mesh_preselect_edgering_3d);
}
/** \} */