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
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-06-21 15:58:47 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-06-21 16:37:46 +0300
commit7c9f64d008357151ae2e0007172a088d41588dec (patch)
treed33ddc55f5c1d3315be32131e0ce9e140d26436c /intern
parent83a4f5600d7b9fe3352d2f66898ea3f4a0c86738 (diff)
Fix T63766: Multiresolution behavior when using crease edge
Switch to Gregory basis patches which are tangent continuous across their boundaries. Originally we've used BSpline basis patches to be more compatible with the old subdivision code, but a lot of things changed anyway.
Diffstat (limited to 'intern')
-rw-r--r--intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc
index fa45c0119ec..198f985a233 100644
--- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc
+++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc
@@ -771,11 +771,8 @@ OpenSubdiv_EvaluatorInternal *openSubdiv_createEvaluatorInternal(
}
#endif
// Generate bi-cubic patch table for the limit surface.
- // TODO(sergey): Ideally we would want to expose end-cap settings via
- // C-API to make it more generic. Currently it matches old Blender's
- // subsurf code.
PatchTableFactory::Options patch_options(level);
- patch_options.SetEndCapType(PatchTableFactory::Options::ENDCAP_BSPLINE_BASIS);
+ patch_options.SetEndCapType(PatchTableFactory::Options::ENDCAP_GREGORY_BASIS);
patch_options.useInfSharpPatch = use_inf_sharp_patch;
patch_options.generateFVarTables = has_face_varying_data;
patch_options.generateFVarLegacyLinearPatches = false;