diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-22 15:50:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-22 15:56:15 +0300 |
commit | ccd51bb9224899b4b7d50170267d94d9b9f2567f (patch) | |
tree | 81f15e6f905296989df3081ba557cad2dafdee47 /source | |
parent | 48c4b700dce0b326e1b905e133c0db1217a5cae0 (diff) |
OpenSubdiv: Properly support active UV layer in textured view
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/subsurf_ccg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c index c6e20b995ba..7239566b59d 100644 --- a/source/blender/blenkernel/intern/subsurf_ccg.c +++ b/source/blender/blenkernel/intern/subsurf_ccg.c @@ -3401,7 +3401,8 @@ static void ccgDM_drawFacesTex_common(DerivedMesh *dm, #ifdef WITH_OPENSUBDIV if (ccgdm->useGpuBackend) { - if (UNLIKELY(ccgSubSurf_prepareGLMesh(ss, true, -1) == false)) { + const int active_uv_layer = CustomData_get_active_layer_index(&dm->loopData, CD_MLOOPUV); + if (UNLIKELY(ccgSubSurf_prepareGLMesh(ss, true, active_uv_layer) == false)) { return; } if (drawParams == NULL) { |