Fix #34256: join a mesh with non-uniform scale with another mesh showed wrong
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 15 Feb 2013 12:08:01 +0000 (12:08 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 15 Feb 2013 12:08:01 +0000 (12:08 +0000)
normals, they need to be recalculated then.

source/blender/editors/mesh/meshtools.c

index 96b8f1080b93bfb0d860ad83adb7fcd37ee6d729..cb69faa5b5143e537de8666648647c3921d0c41e 100644 (file)
@@ -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++) {