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.
This commit is contained in:
Sergey Sharybin 2015-09-16 23:00:50 +05:00
parent 1fa3bd6148
commit 9d087ad0b5
Notes: blender-bot 2023-02-14 08:39:21 +01:00
Referenced by issue #46140, high quality depth of field is broken
Referenced by issue #46130, Vertex/wire no vizible with OpenSubdiv
1 changed files with 1 additions and 4 deletions

View File

@ -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