mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
New feature to select the container of an object
This commit is contained in:
@@ -192,6 +192,15 @@ class TestRunSpatialAssignContainer(NewFile):
|
||||
pass
|
||||
|
||||
|
||||
class TestSetActiveObject(NewFile):
|
||||
def test_run(self):
|
||||
obj = bpy.data.objects.new("Object", None)
|
||||
bpy.context.scene.collection.objects.link(obj)
|
||||
subject.set_active_object(obj)
|
||||
assert bpy.context.view_layer.objects.active == obj
|
||||
assert obj in bpy.context.selected_objects
|
||||
|
||||
|
||||
class TestSetRelativeObjectMatrix(NewFile):
|
||||
def test_run(self):
|
||||
obj = bpy.data.objects.new("Object", None)
|
||||
|
||||
Reference in New Issue
Block a user