[Bf-blender-cvs] [9a995c1] master: OpenSubdiv: Initial OsdMesh construction missed clearing out-of-date coords flag

Sergey Sharybin noreply at git.blender.org
Wed Aug 5 16:10:07 CEST 2015


Commit: 9a995c11d3fe6f3d2462b636dc14e5bed0804ac1
Author: Sergey Sharybin
Date:   Wed Aug 5 16:06:18 2015 +0200
Branches: master
https://developer.blender.org/rB9a995c11d3fe6f3d2462b636dc14e5bed0804ac1

OpenSubdiv: Initial OsdMesh construction missed clearing out-of-date coords flag

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

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

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

diff --git a/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c b/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
index 8be2911..eb7c3bf 100644
--- a/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
+++ b/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
@@ -262,9 +262,9 @@ bool ccgSubSurf_prepareGLMesh(CCGSubSurf *ss, bool use_osd_glsl)
 		}
 
 		ccgSubSurf__updateGLMeshCoords(ss);
-
 		openSubdiv_osdGLMeshRefine(ss->osd_mesh);
 		openSubdiv_osdGLMeshSynchronize(ss->osd_mesh);
+		ss->osd_coarse_coords_invalid = false;
 
 		glBindVertexArray(ss->osd_vao);
 		glBindBuffer(GL_ARRAY_BUFFER,




More information about the Bf-blender-cvs mailing list