Fix object_utils.py's matrix multiplication (use new @ syntax).
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 10 Sep 2018 16:03:40 +0000 (18:03 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 10 Sep 2018 16:03:40 +0000 (18:03 +0200)
release/scripts/modules/bpy_extras/object_utils.py

index c9ea684862d364758e0e642f86700daa4f74663f..ab32daa9d67b07e651f0c7d4bdaeab140047b5ff 100644 (file)
@@ -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