[Bf-blender-cvs] [0c5eb88] master: Quiet warning (harmless)

Campbell Barton noreply at git.blender.org
Thu Dec 18 02:10:36 CET 2014


Commit: 0c5eb8845165999eb8fb78d02979ba4b836e688e
Author: Campbell Barton
Date:   Thu Dec 18 02:15:42 2014 +0100
Branches: master
https://developer.blender.org/rB0c5eb8845165999eb8fb78d02979ba4b836e688e

Quiet warning (harmless)

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

M	source/blender/bmesh/tools/bmesh_triangulate.c

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

diff --git a/source/blender/bmesh/tools/bmesh_triangulate.c b/source/blender/bmesh/tools/bmesh_triangulate.c
index 94104a2..b76054f 100644
--- a/source/blender/bmesh/tools/bmesh_triangulate.c
+++ b/source/blender/bmesh/tools/bmesh_triangulate.c
@@ -95,6 +95,10 @@ void BM_mesh_triangulate(
 		pf_heap = BLI_heap_new_ex(BLI_POLYFILL_ALLOC_NGON_RESERVE);
 		pf_ehash = BLI_edgehash_new_ex(__func__, BLI_POLYFILL_ALLOC_NGON_RESERVE);
 	}
+	else {
+		pf_heap = NULL;
+		pf_ehash = NULL;
+	}
 
 	if (slot_facemap_out) {
 		/* same as below but call: bm_face_triangulate_mapping() */




More information about the Bf-blender-cvs mailing list