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-09-26 15:14:12 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-09-26 15:42:16 +0300
commitdc316f72b376d49a921cce0fcc718ec0feaa3feb (patch)
tree92be91193583fe5ffc1dbe8287205eeeb621405b /source/blender/modifiers/intern/MOD_multires.c
parent6fc798e049a5c48bb130054c45bc6f15999ae1a2 (diff)
Multires: Promote OSD CCG to be officially supported
Only active when WITH_OPENSUBDIV_MODIFIER is set to ON. There is still some work to be done to make that one enabled by default.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_multires.c')
-rw-r--r--source/blender/modifiers/intern/MOD_multires.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/modifiers/intern/MOD_multires.c b/source/blender/modifiers/intern/MOD_multires.c
index c3cfa1d8cd3..8c055536834 100644
--- a/source/blender/modifiers/intern/MOD_multires.c
+++ b/source/blender/modifiers/intern/MOD_multires.c
@@ -228,16 +228,12 @@ static Mesh *applyModifier_subdiv(ModifierData *md,
/* Happens on bad topology, ut also on empty input mesh. */
return result;
}
- /* TODO(sergey): Some of production machines are using OpenSubdiv already.
- * so better not enable semi-finished multires sculpting for now. Will give
- * a wrong impression that things do work, even though crucial areas are
- * still missing in implementation.
+ /* NOTE: Orco needs final coordinates on CPU side, which are expected to be
+ * accessible via MVert. For this reason we do not evaluate multires to
+ * grids when orco is requested.
*/
const bool for_orco = (ctx->flag & MOD_APPLY_ORCO) != 0;
- if ((ctx->object->mode & OB_MODE_SCULPT) &&
- G.debug_value == 128 &&
- !for_orco)
- {
+ if ((ctx->object->mode & OB_MODE_SCULPT) && !for_orco) {
/* NOTE: CCG takes ownership over Subdiv. */
result = multires_as_ccg(mmd, ctx, mesh, subdiv);
// BKE_subdiv_stats_print(&subdiv->stats);