Cleanup: use 'mesh' in preselect identifiers
authorCampbell Barton <ideasman42@gmail.com>
Mon, 10 Sep 2018 04:44:15 +0000 (14:44 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 10 Sep 2018 04:44:15 +0000 (14:44 +1000)
We may have preselection for other types later.

source/blender/editors/space_view3d/view3d_gizmo_preselect.c
source/blender/editors/space_view3d/view3d_gizmo_preselect_type.c

index e7a35c39bf3ec400a7412621f7d6a3d290143d64..3f022a83f34aff7012858382dd73cc2039ddccb8 100644 (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;
 
index 33de6621db37e45d813c81ccb91e7bf14263cfc9..0692c803904bac063422e1ffd882b858866dfed5 100644 (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);
 }
 
 /** \} */