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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-23 00:43:25 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-23 01:03:36 +0300
commitae6300a8b74b487d9c2cbcf18f36719654ac5e72 (patch)
tree4eef601e8078a8d605756c1cada5e2565c3162c2 /intern/opensubdiv
parentab9492648398ecd9265173356d50688ddb3c9aeb (diff)
Fix T66022: crash adding subdivision surface modifier to some meshes
This reverts commit 7c9f64d00835: "Fix T63766: Multiresolution behavior when using crease edge"
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r--intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc
index 198f985a233..fa45c0119ec 100644
--- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc
+++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc
@@ -771,8 +771,11 @@ 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_GREGORY_BASIS);
+ patch_options.SetEndCapType(PatchTableFactory::Options::ENDCAP_BSPLINE_BASIS);
patch_options.useInfSharpPatch = use_inf_sharp_patch;
patch_options.generateFVarTables = has_face_varying_data;
patch_options.generateFVarLegacyLinearPatches = false;