mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
The storey is now the default container when starting a project for convenience.
This commit is contained in:
@@ -82,6 +82,18 @@ class TestRunUnitAssignSceneUnits(NewFile):
|
||||
pass
|
||||
|
||||
|
||||
class TestSetActiveSpatialElement(NewFile):
|
||||
def test_run(self):
|
||||
obj = bpy.data.objects.new("Foo", None)
|
||||
collection = bpy.data.collections.new("Foo")
|
||||
bpy.context.scene.collection.children.link(collection)
|
||||
collection.objects.link(obj)
|
||||
layer = bpy.context.view_layer.layer_collection.children["Foo"]
|
||||
assert bpy.context.view_layer.active_layer_collection != layer
|
||||
subject.set_active_spatial_element(obj)
|
||||
assert bpy.context.view_layer.active_layer_collection == layer
|
||||
|
||||
|
||||
class TestSetContext(NewFile):
|
||||
def test_run(self):
|
||||
ifc = ifcopenshell.file()
|
||||
|
||||
Reference in New Issue
Block a user