Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-10-03 13:58:29 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-10-03 13:58:29 +0400
commitd4758badf60f70296d8e51fe1a42cc174f507024 (patch)
treebe8c911069765f17ff7ea95d9f0fa3287719a96f /source/blender/modifiers/intern/MOD_wireframe.c
parent502f6d538dc2c3f54d56bf4af5e27be92d21e2d6 (diff)
Fix T42054: Problem when using Cast modifier with Wireframe modifier.
Wireframe modifier needs valid normals, let's ensure that!
Diffstat (limited to 'source/blender/modifiers/intern/MOD_wireframe.c')
-rw-r--r--source/blender/modifiers/intern/MOD_wireframe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_wireframe.c b/source/blender/modifiers/intern/MOD_wireframe.c
index 76986583ef5..108eee151bd 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(