Merged changes in the trunk up to revision 51718.
[blender.git] / source / blender / blenkernel / intern / subsurf_ccg.c
index facf0793f870fe3011533ba36f491dbb9740cf7b..33350a80928014c1cc00abc6e99fbfd9fd3266de 100644 (file)
@@ -3020,6 +3020,9 @@ static struct PBVH *ccgDM_getPBVH(Object *ob, DerivedMesh *dm)
                                    me->totface, me->totvert, &me->vdata);
        }
 
+       if (ccgdm->pbvh)
+               pbvh_show_diffuse_color_set(ccgdm->pbvh, ob->sculpt->show_diffuse_color);
+
        return ccgdm->pbvh;
 }