Merged changes in the trunk up to revision 46045.
[blender-staging.git] / source / blender / bmesh / operators / bmo_utils.c
index 8409c5b76b88f09014107be6e20dc2d38f6240e3..c5fab20da6f7017a6f0bb3601e7982616e7622a4 100644 (file)
@@ -646,6 +646,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;
                                }
                        }
                }
@@ -822,6 +829,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;
                                }
                        }
                }