[Bf-blender-cvs] [d4758ba] master: Fix T42054: Problem when using Cast modifier with Wireframe modifier.
Bastien Montagne
noreply at git.blender.org
Fri Oct 3 11:59:43 CEST 2014
Commit: d4758badf60f70296d8e51fe1a42cc174f507024
Author: Bastien Montagne
Date: Fri Oct 3 11:58:29 2014 +0200
Branches: master
https://developer.blender.org/rBd4758badf60f70296d8e51fe1a42cc174f507024
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