Cleanup: use 'mesh' in preselect identifiers
We may have preselection for other types later.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
Reference in New Issue
Block a user