diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-08-01 16:43:57 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-08-01 19:42:59 +0300 |
commit | 4fe14d6a26e101a32e6a0ec9722248d215287a9d (patch) | |
tree | f8ace27ca928a36f2e1fad8d2603324878772b0a /source/blender/modifiers/intern/MOD_subsurf.c | |
parent | 63058490a3da932d2c9224aa4555f23eebb77264 (diff) |
Subsurf: Support subdivision of mesh with just loose elements
Diffstat (limited to 'source/blender/modifiers/intern/MOD_subsurf.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_subsurf.c | 6 |
1 files changed, 1 insertions, 5 deletions
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; |