diff options
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_multires.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_multires.c b/source/blender/modifiers/intern/MOD_multires.c index bf0086903b8..ca62560caa8 100644 --- a/source/blender/modifiers/intern/MOD_multires.c +++ b/source/blender/modifiers/intern/MOD_multires.c @@ -227,14 +227,16 @@ static Mesh *applyModifier_subdiv(ModifierData *md, * still missing in implementation. */ if ((ctx->object->mode & OB_MODE_SCULPT) && G.debug_value == 128) { + /* NOTE: CCG takes ownership over Subdiv. */ result = multires_as_ccg(mmd, ctx, mesh, subdiv); + // BKE_subdiv_stats_print(&subdiv->stats); } else { result = multires_as_mesh(mmd, ctx, mesh, subdiv); + /* TODO(sergey): Cache subdiv somehow. */ + // BKE_subdiv_stats_print(&subdiv->stats); + BKE_subdiv_free(subdiv); } - /* TODO(sergey): Cache subdiv somehow. */ - // BKE_subdiv_stats_print(&subdiv->stats); - BKE_subdiv_free(subdiv); return result; } #endif |