[Bf-blender-cvs] [e7f5b69] blender-v2.72-release: Fix T42054: Problem when using Cast modifier with Wireframe modifier.

Bastien Montagne noreply at git.blender.org
Fri Oct 3 15:24:57 CEST 2014


Commit: e7f5b6986729b2399dba81cb37592ab589be7560
Author: Bastien Montagne
Date:   Fri Oct 3 11:58:29 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rBe7f5b6986729b2399dba81cb37592ab589be7560

Fix T42054: Problem when using Cast modifier with Wireframe modifier.

Wireframe modifier needs valid normals, let's ensure that!

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

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

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

diff --git a/source/blender/modifiers/intern/MOD_wireframe.c b/source/blender/modifiers/intern/MOD_wireframe.c
index 7698658..108eee1 100644
--- a/source/blender/modifiers/intern/MOD_wireframe.c
+++ b/source/blender/modifiers/intern/MOD_wireframe.c
@@ -82,6 +82,8 @@ static DerivedMesh *WireframeModifier_do( WireframeModifierData *wmd, Object *ob
 
 	const int defgrp_index = defgroup_name_index(ob, wmd->defgrp_name);
 
+	DM_ensure_normals(dm);
+
 	bm = DM_to_bmesh(dm, true);
 
 	BM_mesh_wireframe(




More information about the Bf-blender-cvs mailing list