diff options
-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] |