Skip to content

Commit

Permalink
Blender 2.76 A update. OpenSubdiv objects are invisible in Blender In…
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerBforartists committed Nov 11, 2015
1 parent b149e35 commit 3a98a8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/blender/modifiers/intern/MOD_subsurf.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
Expand Down Expand Up @@ -108,11 +109,10 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,

#ifdef WITH_OPENSUBDIV
const bool allow_gpu = (flag & MOD_APPLY_ALLOW_GPU) != 0;
const bool do_cddm_convert = useRenderParams || (!isFinalCalc && !smd->use_opensubdiv);
#else
const bool do_cddm_convert = useRenderParams || !isFinalCalc;

#endif

bool do_cddm_convert = useRenderParams || !isFinalCalc;
if (useRenderParams)
subsurf_flags |= SUBSURF_USE_RENDER_PARAMS;
if (isFinalCalc)
Expand All @@ -134,6 +134,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
}
else if ((DAG_get_eval_flags_for_object(md->scene, ob) & DAG_EVAL_NEED_CPU) == 0) {
subsurf_flags |= SUBSURF_USE_GPU_BACKEND;
do_cddm_convert = false;
}
else {
modifier_setError(md, "OpenSubdiv is disabled due to dependencies");
Expand Down

0 comments on commit 3a98a8d

Please sign in to comment.