From 4d1d224a34600f222cf4b3b48e2320c118428208 Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Thu, 8 May 2025 17:04:34 -0500 Subject: [PATCH] fix #6683 - When placing `Level (Plan)` annotation, have it take on the 'z' dimension of the 3d cursor, verses the front plane of the drawing camera --- src/bonsai/bonsai/bim/module/drawing/annotation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/drawing/annotation.py b/src/bonsai/bonsai/bim/module/drawing/annotation.py index d312298f1b..274b016884 100644 --- a/src/bonsai/bonsai/bim/module/drawing/annotation.py +++ b/src/bonsai/bonsai/bim/module/drawing/annotation.py @@ -130,7 +130,11 @@ class Annotator: drawing: ifcopenshell.entity_instance, object_type: str, data_type: tool.Drawing.ANNOTATION_DATA_TYPE ) -> bpy.types.Object: camera = tool.Ifc.get_object(drawing) - co1, _, _, _ = Annotator.get_placeholder_coords(camera) + # those annotations you want to obey the depth of the 3d cursor + if object_type == 'PLAN_LEVEL': + co1 = bpy.context.scene.cursor.location.copy() + else: + co1, _, _, _ = Annotator.get_placeholder_coords(camera) matrix_world = tool.Drawing.get_camera_matrix(camera) matrix_world.translation = co1 collection = tool.Blender.get_object_bim_props(camera).collection