diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-12-28 12:37:54 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-12-28 12:37:54 +0300 |
commit | 1e935b090be3287f835d6bcbacc6b2c5345f3936 (patch) | |
tree | 452834ed6647547fd8ea0213993e0644c4ad1a99 /release | |
parent | fdc726eb61d15a51d8deddcb6b7b79859ea9950e (diff) |
Fix T59774: Lightmap Pack Error: Element-wise multiplication: not supported between 'Quaternion' and 'Vector' types.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_lightmap.py | 4 |
1 files changed, 2 insertions, 2 deletions
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] |