mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
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
This commit is contained in:
@@ -130,7 +130,11 @@ class Annotator:
|
|||||||
drawing: ifcopenshell.entity_instance, object_type: str, data_type: tool.Drawing.ANNOTATION_DATA_TYPE
|
drawing: ifcopenshell.entity_instance, object_type: str, data_type: tool.Drawing.ANNOTATION_DATA_TYPE
|
||||||
) -> bpy.types.Object:
|
) -> bpy.types.Object:
|
||||||
camera = tool.Ifc.get_object(drawing)
|
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 = tool.Drawing.get_camera_matrix(camera)
|
||||||
matrix_world.translation = co1
|
matrix_world.translation = co1
|
||||||
collection = tool.Blender.get_object_bim_props(camera).collection
|
collection = tool.Blender.get_object_bim_props(camera).collection
|
||||||
|
|||||||
Reference in New Issue
Block a user