mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
black .
This commit is contained in:
@@ -131,7 +131,7 @@ class Annotator:
|
|||||||
) -> bpy.types.Object:
|
) -> bpy.types.Object:
|
||||||
camera = tool.Ifc.get_object(drawing)
|
camera = tool.Ifc.get_object(drawing)
|
||||||
# those annotations you want to obey the depth of the 3d cursor
|
# those annotations you want to obey the depth of the 3d cursor
|
||||||
if object_type == 'PLAN_LEVEL':
|
if object_type == "PLAN_LEVEL":
|
||||||
co1 = bpy.context.scene.cursor.location.copy()
|
co1 = bpy.context.scene.cursor.location.copy()
|
||||||
else:
|
else:
|
||||||
co1, _, _, _ = Annotator.get_placeholder_coords(camera)
|
co1, _, _, _ = Annotator.get_placeholder_coords(camera)
|
||||||
|
|||||||
@@ -85,7 +85,9 @@ class TestAppendAssetIFC2X3(test.bootstrap.IFC2X3):
|
|||||||
library = ifcopenshell.api.project.create_file(version=self.file.schema)
|
library = ifcopenshell.api.project.create_file(version=self.file.schema)
|
||||||
ifcopenshell.api.root.create_entity(library, ifc_class="IfcProject")
|
ifcopenshell.api.root.create_entity(library, ifc_class="IfcProject")
|
||||||
lib_context = ifcopenshell.api.context.add_context(library, context_type="Model")
|
lib_context = ifcopenshell.api.context.add_context(library, context_type="Model")
|
||||||
lib_subcontext = ifcopenshell.api.context.add_context(library, context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent=lib_context)
|
lib_subcontext = ifcopenshell.api.context.add_context(
|
||||||
|
library, context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent=lib_context
|
||||||
|
)
|
||||||
|
|
||||||
# It has no contexts right now
|
# It has no contexts right now
|
||||||
ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcProject")
|
ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcProject")
|
||||||
|
|||||||
Reference in New Issue
Block a user