[Bf-blender-cvs] [d6ebf72] master: Fix for building with OpenSubdiv

Campbell Barton noreply at git.blender.org
Fri Jul 24 09:17:03 CEST 2015


Commit: d6ebf72f9f89078dd2d7b35bcbf0b31c1e19ab87
Author: Campbell Barton
Date:   Fri Jul 24 17:11:50 2015 +1000
Branches: master
https://developer.blender.org/rBd6ebf72f9f89078dd2d7b35bcbf0b31c1e19ab87

Fix for building with OpenSubdiv

===================================================================

M	source/blender/blenkernel/intern/subsurf_ccg.c

===================================================================

diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c
index 566924c..0fb5584 100644
--- a/source/blender/blenkernel/intern/subsurf_ccg.c
+++ b/source/blender/blenkernel/intern/subsurf_ccg.c
@@ -1778,8 +1778,8 @@ static void ccgDM_drawEdges(DerivedMesh *dm, bool drawLooseEdges, bool drawAllEd
 #ifdef WITH_OPENSUBDIV
 	if (ccgdm->useGpuBackend) {
 		/* TODO(sergey): We currently only support all edges drawing. */
-		if (ccgSubSurf_prepareGLMesh(ss, true)) {
-			ccgSubSurf_drawGLMesh(ss, false, -1, -1);
+		if (ccgSubSurf_prepareGLMesh(ccgdm->ss, true)) {
+			ccgSubSurf_drawGLMesh(ccgdm->ss, false, -1, -1);
 		}
 		return;
 	}




More information about the Bf-blender-cvs mailing list