diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-02-15 16:08:01 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-02-15 16:08:01 +0400 |
commit | d5d38ef0c74150fc7945e7f49a29837bcdd1248d (patch) | |
tree | d3779810d613241338b496991cea5f570dc32ab1 /source | |
parent | 4d32e9a49e910ee872143103b1d747bf9f81e029 (diff) |
Fix #34256: join a mesh with non-uniform scale with another mesh showed wrong
normals, they need to be recalculated then.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/meshtools.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/meshtools.c b/source/blender/editors/mesh/meshtools.c index 96b8f1080b9..cb69faa5b51 100644 --- a/source/blender/editors/mesh/meshtools.c +++ b/source/blender/editors/mesh/meshtools.c @@ -502,6 +502,9 @@ int join_mesh_exec(bContext *C, wmOperator *op) /* tessface data removed above, no need to update */ mesh_update_customdata_pointers(me, FALSE); + + /* update normals in case objects with non-uniform scale are joined */ + ED_mesh_calc_normals(me); /* old material array */ for (a = 1; a <= ob->totcol; a++) { |