Cleanup: rename drawObjectSelect
After adding draw_object_select, noticed a similar name. Rename drawObjectSelect to draw_object_selected_outline.
This commit is contained in:
parent
12e681909f
commit
3dbb560331
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user