Merged changes in the trunk up to revision 47977.
[blender.git] / source / blender / bmesh / operators / bmo_utils.c
index e0cd3e2ba90dfb321a54de317234f01e75f0e9b9..b076d835ea151ef88a7f49131db28d44e22abbc7 100644 (file)
@@ -647,6 +647,13 @@ void bmo_similarfaces_exec(BMesh *bm, BMOperator *op)
                                                        cont = FALSE;
                                                }
                                                break;
+
+                                       case SIMFACE_FREESTYLE:
+                                               if (BM_elem_flag_test(fm, BM_ELEM_FREESTYLE) == BM_elem_flag_test(fs, BM_ELEM_FREESTYLE)) {
+                                                       BMO_elem_flag_enable(bm, fm, FACE_MARK);
+                                                       cont = 0;
+                                               }
+                                               break;
                                }
                        }
                }
@@ -852,6 +859,13 @@ void bmo_similaredges_exec(BMesh *bm, BMOperator *op)
                                                        cont = FALSE;
                                                }
                                                break;
+
+                                       case SIMEDGE_FREESTYLE:
+                                               if (BM_elem_flag_test(e, BM_ELEM_FREESTYLE) == BM_elem_flag_test(es, BM_ELEM_FREESTYLE)) {
+                                                       BMO_elem_flag_enable(bm, e, EDGE_MARK);
+                                                       cont = 0;
+                                               }
+                                               break;
                                }
                        }
                }