[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52565] trunk/blender/release/scripts/ startup/bl_operators/uvcalc_smart_project.py: fix [#31598] Messed up Smart UVs
Campbell Barton
ideasman42 at gmail.com
Mon Nov 26 12:53:36 CET 2012
Revision: 52565
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52565
Author: campbellbarton
Date: 2012-11-26 11:53:34 +0000 (Mon, 26 Nov 2012)
Log Message:
-----------
fix [#31598] Messed up Smart UVs
face areas were too close to zero. also copy the face normal to avoid recalculations on each use.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_operators/uvcalc_smart_project.py
Modified: trunk/blender/release/scripts/startup/bl_operators/uvcalc_smart_project.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/uvcalc_smart_project.py 2012-11-26 11:05:22 UTC (rev 52564)
+++ trunk/blender/release/scripts/startup/bl_operators/uvcalc_smart_project.py 2012-11-26 11:53:34 UTC (rev 52565)
@@ -23,7 +23,7 @@
from bpy.types import Operator
DEG_TO_RAD = 0.017453292519943295 # pi/180.0
-SMALL_NUM = 0.000000001
+SMALL_NUM = 0.0000001 # see bug [#31598] why we dont have smaller values
BIG_NUM = 1e15
global USER_FILL_HOLES
@@ -759,7 +759,7 @@
self.v = [mesh_verts[i] for i in face.vertices]
self.uv = [uv_layer[i].uv for i in face.loop_indices]
- self.no = face.normal
+ self.no = face.normal.copy()
self.area = face.area
self.edge_keys = face.edge_keys
More information about the Bf-blender-cvs
mailing list