diff options
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index b976c231841..d4745247ae3 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -63,15 +63,18 @@ int view3d_effective_drawtype(const struct View3D *v3d) static bool check_ob_drawface_dot(Scene *sce, View3D *vd, char dt) { - if ((sce->toolsettings->selectmode & SCE_SELECT_FACE) == 0) + if ((sce->toolsettings->selectmode & SCE_SELECT_FACE) == 0) { return false; + } - if (G.f & G_FLAG_BACKBUFSEL) + if (G.f & G_FLAG_BACKBUFSEL) { return false; + } /* if its drawing textures with zbuf sel, then don't draw dots */ - if (dt == OB_TEXTURE && vd->shading.type == OB_TEXTURE) + if (dt == OB_TEXTURE && vd->shading.type == OB_TEXTURE) { return false; + } return true; } @@ -330,8 +333,9 @@ void draw_object_select_id( bbs_mesh_face_dot(geom_facedots, world_clip_planes); } - if (select_mode & SCE_SELECT_FACE) + if (select_mode & SCE_SELECT_FACE) { bm_solidoffs = 1 + em->bm->totface; + } else { bm_solidoffs = 1; } |