fix [#27996] Smart UV Unwrap Still Results in Overlaps
real fix this time :S, I thought using old code from 2.4x would fix but quaternion needed to be inverted.
This commit is contained in:
@@ -747,14 +747,8 @@ def packIslands(islandList):
|
||||
|
||||
|
||||
def VectoQuat(vec):
|
||||
a3 = vec.normalized()
|
||||
up = Vector((0.0, 0.0, 1.0))
|
||||
if abs(a3.dot(up)) == 1.0:
|
||||
up = Vector((0.0, 1.0, 0.0))
|
||||
|
||||
a1 = a3.cross(up).normalized()
|
||||
a2 = a3.cross(a1)
|
||||
return Matrix((a1, a2, a3)).to_quaternion()
|
||||
vec = vec.normalized()
|
||||
return vec.to_track_quat('Z', 'X' if abs(vec.x) > 0.5 else 'Y').inverted()
|
||||
|
||||
|
||||
class thickface(object):
|
||||
|
Reference in New Issue
Block a user