[Bf-blender-cvs] [fa5dac4] soc-2014-shapekey: Removed a pointless assert and a bad totelem change from editdata_to_scratch

Grigory Revzin noreply at git.blender.org
Sun May 18 00:49:42 CEST 2014


Commit: fa5dac46b72fdf65632db851bf9a218355d3d692
Author: Grigory Revzin
Date:   Sun May 18 02:49:08 2014 +0400
https://developer.blender.org/rBfa5dac46b72fdf65632db851bf9a218355d3d692

Removed a pointless assert and a bad totelem change from editdata_to_scratch

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

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

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

diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c
index 4d1969a..87e498b 100644
--- a/source/blender/blenkernel/intern/key.c
+++ b/source/blender/blenkernel/intern/key.c
@@ -2103,11 +2103,8 @@ void BKE_key_editdata_to_scratch(Object *ob, bool indeces_in_sync)
 				co = skb->data;
 			}
 
-			skb->origin->totelem = bm->totvert;
-
 			BM_ITER_MESH(v, &iter, bm, BM_VERTS_OF_MESH) {
 				a = *(int *) CustomData_bmesh_get(&bm->vdata, v->head.data, CD_SHAPE_KEYINDEX);
-				BLI_assert(a < bm->totvert);
 				if (a != ORIGINDEX_NONE) {
 					copy_v3_v3(co[a], v->co);
 				}




More information about the Bf-blender-cvs mailing list