From 9d087ad0b572cc42572034fa1fa8eb987faa7a3c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 16 Sep 2015 23:00:50 +0500 Subject: 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. --- source/blender/modifiers/intern/MOD_subsurf.c | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3