mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
See #3501. Minor matrix math fix that caused annotations to not appear in global coordinates.
This commit is contained in:
@@ -166,6 +166,7 @@ class Annotator:
|
|||||||
|
|
||||||
center = camera.matrix_world.inverted() @ bpy.context.scene.cursor.location
|
center = camera.matrix_world.inverted() @ bpy.context.scene.cursor.location
|
||||||
center.z = 0
|
center.z = 0
|
||||||
|
center = camera.matrix_world @ center
|
||||||
|
|
||||||
return (
|
return (
|
||||||
center + z_offset,
|
center + z_offset,
|
||||||
|
|||||||
Reference in New Issue
Block a user