Merged changes in the trunk up to revision 44039.
[blender-staging.git] / source / blender / blenkernel / intern / subsurf_ccg.c
index 4e88a488530afd93e80e83385be575dde1689a0d..f0dea976aa9488bd5749c7c508c5f2e9f3f0fcd5 100644 (file)
@@ -752,7 +752,7 @@ static void ccgDM_getFinalEdge(DerivedMesh *dm, int edgeNum, MEdge *med)
 
                edgeFlag = (ccgdm->edgeFlags)? &ccgdm->edgeFlags[i]: NULL;
                if(edgeFlag)
-                       flags |= (*edgeFlag & (ME_SEAM | ME_SHARP))
+                       flags |= (*edgeFlag & (ME_SEAM | ME_SHARP | ME_FREESTYLE_EDGE))
                                         | ME_EDGEDRAW | ME_EDGERENDER;
                else
                        flags |= ME_EDGEDRAW | ME_EDGERENDER;
@@ -937,7 +937,7 @@ static void ccgDM_copyFinalEdgeArray(DerivedMesh *dm, MEdge *medge)
 
                if(edgeFlags) {
                        if(edgeIdx != -1) {
-                               flags |= (edgeFlags[index] & (ME_SEAM | ME_SHARP))
+                               flags |= (edgeFlags[index] & (ME_SEAM | ME_SHARP | ME_FREESTYLE_EDGE))
                                                 | ME_EDGEDRAW | ME_EDGERENDER;
                        }
                } else {