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:
authorCampbell Barton <ideasman42@gmail.com>2012-11-26 15:53:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-26 15:53:34 +0400
commitc2714a6a5bf9c54cbff7f3c8e37ce25f9c21e8a0 (patch)
treef4f0fa46dbd0fa3050b45f5b0b238f7621050162 /release/scripts/startup/bl_operators/uvcalc_smart_project.py
parent58ee2bdfc0b45335a8e3e4f552749a111e926c69 (diff)
fix [#31598] Messed up Smart UVs
face areas were too close to zero. also copy the face normal to avoid recalculations on each use.
Diffstat (limited to 'release/scripts/startup/bl_operators/uvcalc_smart_project.py')
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_smart_project.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_smart_project.py b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
index eb05057de3d..dd4ced78422 100644
--- a/release/scripts/startup/bl_operators/uvcalc_smart_project.py
+++ b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
@@ -23,7 +23,7 @@ import bpy
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 @@ class thickface(object):
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