small add_constr_type_instance refactor

ifc_class removed as it was never used - ifc_class was always figured either from BIMModelProperties.relating_type_id or operator.relating_type_id
This commit is contained in:
Andrej730
2023-08-01 14:42:17 +05:00
parent a0fd2a11cb
commit 4ce41b33bb
4 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -754,7 +754,7 @@ def i_display_the_construction_type_browser():
@when("I add the construction type")
def i_add_the_active_construction_type():
props = bpy.context.scene.BIMModelProperties
bpy.ops.bim.add_constr_type_instance(ifc_class=props.ifc_class, relating_type_id=int(props.relating_type_id))
bpy.ops.bim.add_constr_type_instance(relating_type_id=int(props.relating_type_id))
@then(parsers.parse("construction type is {relating_type_name}"))