[Bf-blender-cvs] [0ebb632f698] blender2.8: Fix missing reset-to-NULL in own recent changes in modifiers utils.

Bastien Montagne noreply at git.blender.org
Tue Nov 27 21:17:46 CET 2018


Commit: 0ebb632f698b3c0fbb7f9f95ccfdf7eb36f13ede
Author: Bastien Montagne
Date:   Tue Nov 27 20:40:04 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB0ebb632f698b3c0fbb7f9f95ccfdf7eb36f13ede

Fix missing reset-to-NULL in own recent changes in modifiers utils.

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

M	source/blender/modifiers/intern/MOD_util.c

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

diff --git a/source/blender/modifiers/intern/MOD_util.c b/source/blender/modifiers/intern/MOD_util.c
index a8bb5210aad..3210105f710 100644
--- a/source/blender/modifiers/intern/MOD_util.c
+++ b/source/blender/modifiers/intern/MOD_util.c
@@ -213,6 +213,7 @@ Mesh *MOD_deform_mesh_eval_get(
 		 * (texts e.g. tend to give issues, also when deforming curve points instead of generated curve geometry... ). */
 		if (mesh != NULL && mesh->totvert != num_verts) {
 			BKE_id_free(NULL, mesh);
+			mesh = NULL;
 		}
 	}



More information about the Bf-blender-cvs mailing list