Fix object_utils.py's matrix multiplication (use new @ syntax).
This commit is contained in:
parent
fc95efec06
commit
defbe14077
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue