From b12d46f73e448ef2bdefe854a32bcb1f8cb0e74e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 26 Apr 2011 10:38:18 +0000 Subject: - fix for player linking - added notes to release todo's. - renamed view3d view transform matching functions. - added assert in edge split modifier to make a certain bug easier to spot. --- source/blender/modifiers/intern/MOD_edgesplit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/intern/MOD_edgesplit.c b/source/blender/modifiers/intern/MOD_edgesplit.c index 25a8625b342..8d0aea41b5c 100644 --- a/source/blender/modifiers/intern/MOD_edgesplit.c +++ b/source/blender/modifiers/intern/MOD_edgesplit.c @@ -38,6 +38,8 @@ /* EdgeSplit modifier: Splits edges in the mesh according to sharpness flag * or edge angle (can be used to achieve autosmoothing) */ +#include + #include "DNA_meshdata_types.h" #include "BLI_listbase.h" @@ -125,6 +127,8 @@ static SmoothVert *smoothvert_copy(SmoothVert *vert, SmoothMesh *mesh) { SmoothVert *copy = &mesh->verts[mesh->num_verts]; + assert(vert != NULL); + if(mesh->num_verts >= mesh->max_verts) { printf("Attempted to add a SmoothMesh vert beyond end of array\n"); return NULL; -- cgit v1.2.3