[Bf-blender-cvs] [7803cb0] master: BMesh: replace BLI_array_grow_one -> BLI_array_append_ret

Campbell Barton noreply at git.blender.org
Sun Sep 28 07:09:20 CEST 2014


Commit: 7803cb09f3852ff14a5169f1a31bf1f4389bd296
Author: Campbell Barton
Date:   Sun Sep 28 13:41:26 2014 +1000
Branches: master
https://developer.blender.org/rB7803cb09f3852ff14a5169f1a31bf1f4389bd296

BMesh: replace BLI_array_grow_one -> BLI_array_append_ret

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

M	source/blender/editors/mesh/editmesh_rip.c

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

diff --git a/source/blender/editors/mesh/editmesh_rip.c b/source/blender/editors/mesh/editmesh_rip.c
index 3b99333..4f149bf 100644
--- a/source/blender/editors/mesh/editmesh_rip.c
+++ b/source/blender/editors/mesh/editmesh_rip.c
@@ -309,8 +309,7 @@ static EdgeLoopPair *edbm_ripsel_looptag_helper(BMesh *bm)
 		uid_start = uid;
 		uid = uid_end + bm->totedge;
 
-		BLI_array_grow_one(eloop_pairs);
-		lp = &eloop_pairs[BLI_array_count(eloop_pairs) - 1];
+		lp = BLI_array_append_ret(eloop_pairs);
 		BM_edge_loop_pair(e_last, &lp->l_a, &lp->l_b); /* no need to check, we know this will be true */
 
 
@@ -323,8 +322,7 @@ static EdgeLoopPair *edbm_ripsel_looptag_helper(BMesh *bm)
 	}
 
 	/* null terminate */
-	BLI_array_grow_one(eloop_pairs);
-	lp = &eloop_pairs[BLI_array_count(eloop_pairs) - 1];
+	lp = BLI_array_append_ret(eloop_pairs);
 	lp->l_a = lp->l_b = NULL;
 
 	return eloop_pairs;




More information about the Bf-blender-cvs mailing list