diff options
author | Hans Goudey <h.goudey@me.com> | 2022-07-20 22:30:44 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-07-20 22:30:44 +0300 |
commit | fe108d85b4d7f5ac0261f0b95b9c799beb982d9f (patch) | |
tree | dfa3ee8db473aa324a10417e8dcd160781ca637a /source/blender/draw/intern | |
parent | d34f8ac3d9a4c3402fd620253d70bbf71e09abd2 (diff) |
Cleanup: Remove unused function
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/DRW_render.h | 1 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 10 |
2 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/draw/intern/DRW_render.h b/source/blender/draw/intern/DRW_render.h index bb913c53500..c2d26badc4c 100644 --- a/source/blender/draw/intern/DRW_render.h +++ b/source/blender/draw/intern/DRW_render.h @@ -887,7 +887,6 @@ bool DRW_object_is_in_edit_mode(const struct Object *ob); * we are rendering or drawing in the viewport. */ int DRW_object_visibility_in_active_context(const struct Object *ob); -bool DRW_object_is_flat_normal(const struct Object *ob); bool DRW_object_use_hide_faces(const struct Object *ob); bool DRW_object_is_visible_psys_in_active_context(const struct Object *object, diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 5d21ab75650..89ae1c73a76 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -212,16 +212,6 @@ int DRW_object_visibility_in_active_context(const Object *ob) return BKE_object_visibility(ob, mode); } -bool DRW_object_is_flat_normal(const Object *ob) -{ - if (ob->type == OB_MESH) { - const Mesh *me = ob->data; - if (me->mpoly && me->mpoly[0].flag & ME_SMOOTH) { - return false; - } - } - return true; -} bool DRW_object_use_hide_faces(const struct Object *ob) { |