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>2015-09-16 21:00:50 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-09-16 21:02:41 +0300
commit9d087ad0b572cc42572034fa1fa8eb987faa7a3c (patch)
tree82cdb29bd1217b0acf9711d196b14b22946d13e4
parent1fa3bd6148e9909527cf0882b201147fa819d835 (diff)
Fix T46130: Vertex/wire no visible with OpenSubdiv in edit mode
For now simply show warning in the interface and fallback to regular subsurf code. Supporting OpenSubdiv in edit mode in possible but not high priority currently.
-rw-r--r--source/blender/modifiers/intern/MOD_subsurf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_subsurf.c b/source/blender/modifiers/intern/MOD_subsurf.c
index ab52d798cf8..cbd7bc97768 100644
--- a/source/blender/modifiers/intern/MOD_subsurf.c
+++ b/source/blender/modifiers/intern/MOD_subsurf.c
@@ -164,11 +164,8 @@ static DerivedMesh *applyModifierEM(ModifierData *md, Object *UNUSED(ob),
SubsurfFlags ss_flags = (flag & MOD_APPLY_ORCO) ? 0 : (SUBSURF_FOR_EDIT_MODE | SUBSURF_IN_EDIT_MODE);
#ifdef WITH_OPENSUBDIV
const bool allow_gpu = (flag & MOD_APPLY_ALLOW_GPU) != 0;
- /* TODO(sergey): Not entirely correct, modifiers on top of subsurf
- * could be disabled.
- */
if (md->next == NULL && allow_gpu && smd->use_opensubdiv) {
- ss_flags |= SUBSURF_USE_GPU_BACKEND;
+ modifier_setError(md, "OpenSubdiv is not supported in edit mode");
}
#endif