diff options
Diffstat (limited to 'source/blender/blenkernel/intern/subdiv.c')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source/blender/blenkernel/intern/subdiv.c b/source/blender/blenkernel/intern/subdiv.c index f1cde39f657..e6b51c586c3 100644 --- a/source/blender/blenkernel/intern/subdiv.c +++ b/source/blender/blenkernel/intern/subdiv.c @@ -87,27 +87,6 @@ eSubdivVtxBoundaryInterpolation BKE_subdiv_vtx_boundary_interpolation_from_subsu /* ================================ SETTINGS ================================ */ -static bool check_mesh_has_non_quad(const Mesh *mesh) -{ - for (int poly_index = 0; poly_index < mesh->totpoly; poly_index++) { - const MPoly *poly = &mesh->mpoly[poly_index]; - if (poly->totloop != 4) { - return true; - } - } - return false; -} - -void BKE_subdiv_settings_validate_for_mesh(SubdivSettings *settings, const Mesh *mesh) -{ - if (settings->level != 1) { - return; - } - if (check_mesh_has_non_quad(mesh)) { - settings->level = 2; - } -} - bool BKE_subdiv_settings_equal(const SubdivSettings *settings_a, const SubdivSettings *settings_b) { return (settings_a->is_simple == settings_b->is_simple && |