Commit: 47759b14abdeb4aa825a5a207cdbb594d7e717ea
Author: Campbell Barton
Date:   Thu Nov 10 03:19:44 2016 +1100
Branches: master
https://developer.blender.org/rB47759b14abdeb4aa825a5a207cdbb594d7e717ea

BMesh: face-join, remove redundant face assignment

Keep ifdef'd out for holes, this isn't needed currently.

===================================================================

M       source/blender/bmesh/intern/bmesh_core.c

===================================================================

diff --git a/source/blender/bmesh/intern/bmesh_core.c 
b/source/blender/bmesh/intern/bmesh_core.c
index 93ff6f8..a7e1aa7 100644
--- a/source/blender/bmesh/intern/bmesh_core.c
+++ b/source/blender/bmesh/intern/bmesh_core.c
@@ -1317,22 +1317,15 @@ BMFace *BM_faces_join(BMesh *bm, BMFace **faces, int 
totface, const bool do_del)
 #ifdef USE_BMESH_HOLES
        /* add holes */
        BLI_movelisttolist(&f_new->loops, &holes);
-#endif
 
        /* update loop face pointer */
-#ifdef USE_BMESH_HOLES
-       for (lst = f_new->loops.first; lst; lst = lst->next)
-#endif
-       {
-#ifdef USE_BMESH_HOLES
+       for (lst = f_new->loops.first; lst; lst = lst->next) {
                l_iter = l_first = lst->first;
-#else
-               l_iter = l_first = BM_FACE_FIRST_LOOP(f_new);
-#endif
                do {
                        l_iter->f = f_new;
                } while ((l_iter = l_iter->next) != l_first);
        }
+#endif
 
        bm_elements_systag_disable(faces, totface, _FLAG_JF);
        BM_ELEM_API_FLAG_DISABLE(f_new, _FLAG_JF);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to