Skip to content
Snippets Groups Projects
Commit c2714a6a authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#31598] Messed up Smart UVs

face areas were too close to zero. also copy the face normal to avoid recalculations on each use.
parent 58ee2bdf
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ import bpy ...@@ -23,7 +23,7 @@ import bpy
from bpy.types import Operator from bpy.types import Operator
DEG_TO_RAD = 0.017453292519943295 # pi/180.0 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 BIG_NUM = 1e15
global USER_FILL_HOLES global USER_FILL_HOLES
...@@ -759,7 +759,7 @@ class thickface(object): ...@@ -759,7 +759,7 @@ class thickface(object):
self.v = [mesh_verts[i] for i in face.vertices] self.v = [mesh_verts[i] for i in face.vertices]
self.uv = [uv_layer[i].uv for i in face.loop_indices] 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.area = face.area
self.edge_keys = face.edge_keys self.edge_keys = face.edge_keys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment