mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
drawing.create_camera not to assign camera to the scene collection
Noticed that added drawing camera was linked to the scene collection and after collector.assign it was linked to the 2 collections instead of just 1 - it's own drawing collection and the scene collection.
This commit is contained in:
@@ -265,7 +265,6 @@ class Drawing(bonsai.core.tool.Drawing):
|
||||
else:
|
||||
camera.data.BIMCameraProperties.diagram_scale = "1:100|1/100"
|
||||
camera.matrix_world = matrix
|
||||
bpy.context.scene.collection.objects.link(camera)
|
||||
return camera
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -61,7 +61,7 @@ class TestCreateCamera(NewFile):
|
||||
assert obj.data.type == "PERSP"
|
||||
assert obj.data.ortho_scale == 50
|
||||
assert obj.data.clip_end == 10
|
||||
assert obj.users_collection[0] == bpy.context.scene.collection
|
||||
assert obj.users_collection == tuple()
|
||||
|
||||
|
||||
class TestCreateSvgSheet(NewFile):
|
||||
|
||||
Reference in New Issue
Block a user