Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-08-01 16:43:57 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-08-01 19:42:59 +0300
commit4fe14d6a26e101a32e6a0ec9722248d215287a9d (patch)
treef8ace27ca928a36f2e1fad8d2603324878772b0a /source/blender/modifiers
parent63058490a3da932d2c9224aa4555f23eebb77264 (diff)
Subsurf: Support subdivision of mesh with just loose elements
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_subsurf.c6
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;