OpenSubdiv: Report when OSD can't be enabled due to dependencies
Should be useful for debugging cases when enabling the option doesn't cause any performance improvements.
This commit is contained in:
parent
b50916d172
commit
c1938eb127
|
@ -128,6 +128,9 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
|
|||
if ((DAG_get_eval_flags_for_object(md->scene, ob) & DAG_EVAL_NEED_CPU) == 0) {
|
||||
subsurf_flags |= SUBSURF_USE_GPU_BACKEND;
|
||||
}
|
||||
else {
|
||||
modifier_setError(md, "OpenSubdiv is disabled due to dependencies");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue