From 4fe14d6a26e101a32e6a0ec9722248d215287a9d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 1 Aug 2018 15:43:57 +0200 Subject: Subsurf: Support subdivision of mesh with just loose elements --- source/blender/modifiers/intern/MOD_subsurf.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/intern/MOD_subsurf.c b/source/blender/modifiers/intern/MOD_subsurf.c index 08dc7c92693..1b25b4f62dc 100644 --- a/source/blender/modifiers/intern/MOD_subsurf.c +++ b/source/blender/modifiers/intern/MOD_subsurf.c @@ -236,11 +236,7 @@ static Mesh *applyModifier_subdiv(ModifierData *md, /* TODO(sergey): Try to re-use subdiv when possible. */ Subdiv *subdiv = BKE_subdiv_new_from_mesh(&subdiv_settings, mesh); if (subdiv == NULL) { - /* Happens on bad topology. */ - /* TODO(sergey): This also happens on meshes without faces, so probably - * need to handle those differently (i.e. set modifier error when - * topology itself is bad, and not do anything when there are no faces). - */ + /* Happens on bad topology, ut also on empty input mesh. */ return result; } SubdivToMeshSettings mesh_settings; -- cgit v1.2.3