[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54578] trunk/blender/source/blender/ editors/mesh/meshtools.c: Fix #34256: join a mesh with non-uniform scale with another mesh showed wrong

Brecht Van Lommel brechtvanlommel at pandora.be
Fri Feb 15 13:08:01 CET 2013


Revision: 54578
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54578
Author:   blendix
Date:     2013-02-15 12:08:01 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
Fix #34256: join a mesh with non-uniform scale with another mesh showed wrong
normals, they need to be recalculated then.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mesh/meshtools.c

Modified: trunk/blender/source/blender/editors/mesh/meshtools.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/meshtools.c	2013-02-15 11:49:22 UTC (rev 54577)
+++ trunk/blender/source/blender/editors/mesh/meshtools.c	2013-02-15 12:08:01 UTC (rev 54578)
@@ -502,6 +502,9 @@
 
 	/* 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++) {




More information about the Bf-blender-cvs mailing list