diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-13 12:29:08 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-14 15:43:56 +0300 |
commit | f827e3c84bc9ec585d16a796b614f4b1694e4507 (patch) | |
tree | 5b3fb044d4678810c14037b3fb0a6e2f7f8f8925 /source/blender/modifiers/intern | |
parent | e37479ad895c0bfb12dd0456cc520e1b73b99878 (diff) |
Subdiv: Cache Subdiv in CCG surface
Allows to do re-shaping easier, since we will know for sure
what was the limit surface the CCG is created for.
Diffstat (limited to 'source/blender/modifiers/intern')
-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 |