Cleanup: rename drawObjectSelect
authorCampbell Barton <ideasman42@gmail.com>
Fri, 10 Mar 2017 10:27:33 +0000 (21:27 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 10 Mar 2017 10:27:33 +0000 (21:27 +1100)
After adding draw_object_select, noticed a similar name.
Rename drawObjectSelect to draw_object_selected_outline.

source/blender/editors/space_view3d/drawobject.c

index 898f155cc92a421632c7a7eb423888025ab3ebde..be2e4ab05e0d3e29d42aba17821d416941b68947 100644 (file)
@@ -7171,8 +7171,9 @@ static void drawtexspace(Object *ob)
 }
 
 /* draws wire outline */
-static void drawObjectSelect(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
-                             const unsigned char ob_wire_col[4])
+static void draw_object_selected_outline(
+        Scene *scene, View3D *v3d, ARegion *ar, Base *base,
+        const unsigned char ob_wire_col[4])
 {
        RegionView3D *rv3d = ar->regiondata;
        Object *ob = base->object;
@@ -7645,7 +7646,7 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, const short
                if ((v3d->flag & V3D_SELECT_OUTLINE) && !render_override && ob->type != OB_MESH) {
                        if (dt > OB_WIRE && (ob->mode & OB_MODE_EDIT) == 0 && (dflag & DRAW_SCENESET) == 0) {
                                if (!(ob->dtx & OB_DRAWWIRE) && (ob->flag & SELECT) && !(dflag & (DRAW_PICKING | DRAW_CONSTCOLOR))) {
-                                       drawObjectSelect(scene, v3d, ar, base, ob_wire_col);
+                                       draw_object_selected_outline(scene, v3d, ar, base, ob_wire_col);
                                }
                        }
                }