[Bf-blender-cvs] [e5e686a6678] temp-object-multi-mode: Fix build (BLI_array_len/_count)

Dalai Felinto noreply at git.blender.org
Thu Mar 22 18:38:13 CET 2018


Commit: e5e686a667890d5e7c4b33c5eaaf06f39f3debfa
Author: Dalai Felinto
Date:   Thu Mar 22 14:37:59 2018 -0300
Branches: temp-object-multi-mode
https://developer.blender.org/rBe5e686a667890d5e7c4b33c5eaaf06f39f3debfa

Fix build (BLI_array_len/_count)

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

M	source/blender/blenkernel/intern/layer_utils.c

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

diff --git a/source/blender/blenkernel/intern/layer_utils.c b/source/blender/blenkernel/intern/layer_utils.c
index c7accf151ca..c556443cbed 100644
--- a/source/blender/blenkernel/intern/layer_utils.c
+++ b/source/blender/blenkernel/intern/layer_utils.c
@@ -76,9 +76,9 @@ Base **BKE_view_layer_array_from_bases_in_mode_params(
 	} FOREACH_BASE_IN_MODE_END;
 
 	if (base_array != NULL) {
-		base_array = MEM_reallocN(base_array, sizeof(*base_array) * BLI_array_count(base_array));
+		base_array = MEM_reallocN(base_array, sizeof(*base_array) * BLI_array_len(base_array));
 	}
-	*r_len = BLI_array_count(base_array);
+	*r_len = BLI_array_len(base_array);
 	return base_array;
 }



More information about the Bf-blender-cvs mailing list