Merged changes in the trunk up to revision 42116.
[blender.git] / source / blender / blenkernel / intern / subsurf_ccg.c
index 050aaee92e4060dc98ec60043c7b2bbeb3639275..1ad811c6580af60a006543742747bf8816e22104 100644 (file)
@@ -749,7 +749,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;
@@ -934,7 +934,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 {