[Bf-blender-cvs] [defbe140772] blender2.8: Fix object_utils.py's matrix multiplication (use new @ syntax).

Bastien Montagne noreply at git.blender.org
Mon Sep 10 18:04:42 CEST 2018


Commit: defbe140772d27de5cffeaf7af2abbd0a492d7eb
Author: Bastien Montagne
Date:   Mon Sep 10 18:03:40 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBdefbe140772d27de5cffeaf7af2abbd0a492d7eb

Fix object_utils.py's matrix multiplication (use new @ syntax).

===================================================================

M	release/scripts/modules/bpy_extras/object_utils.py

===================================================================

diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py
index c9ea684862d..ab32daa9d67 100644
--- a/release/scripts/modules/bpy_extras/object_utils.py
+++ b/release/scripts/modules/bpy_extras/object_utils.py
@@ -308,7 +308,7 @@ def world_to_camera_view(scene, obj, coord):
     """
     from mathutils import Vector
 
-    co_local = obj.matrix_world.normalized().inverted() * coord
+    co_local = obj.matrix_world.normalized().inverted() @ coord
     z = -co_local.z
 
     camera = obj.data



More information about the Bf-blender-cvs mailing list