[Bf-blender-cvs] [1e935b090be] master: Fix T59774: Lightmap Pack Error: Element-wise multiplication: not supported between 'Quaternion' and 'Vector' types.
Bastien Montagne
noreply at git.blender.org
Fri Dec 28 10:38:21 CET 2018
Commit: 1e935b090be3287f835d6bcbacc6b2c5345f3936
Author: Bastien Montagne
Date: Fri Dec 28 10:37:54 2018 +0100
Branches: master
https://developer.blender.org/rB1e935b090be3287f835d6bcbacc6b2c5345f3936
Fix T59774: Lightmap Pack Error: Element-wise multiplication: not supported between 'Quaternion' and 'Vector' types.
===================================================================
M release/scripts/startup/bl_operators/uvcalc_lightmap.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
index 1382d84db49..402fe7d6c2e 100644
--- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py
+++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
@@ -107,12 +107,12 @@ class prettyface:
no = data.normal
r = no.rotation_difference(mathutils.Vector((0.0, 0.0, 1.0)))
- cos_2d = [(r * co).xy for co in cos]
+ cos_2d = [(r @ co).xy for co in cos]
# print(cos_2d)
angle = mathutils.geometry.box_fit_2d(cos_2d)
mat = mathutils.Matrix.Rotation(angle, 2)
- cos_2d = [(mat * co) for co in cos_2d]
+ cos_2d = [(mat @ co) for co in cos_2d]
xs = [co.x for co in cos_2d]
ys = [co.y for co in cos_2d]
More information about the Bf-blender-cvs
mailing list