mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
deleted extraneous variables
This commit is contained in:
@@ -2289,11 +2289,9 @@ class AssignSelectedObjectAsProduct(bpy.types.Operator):
|
|||||||
element2 = tool.Ifc.get_entity(obj2)
|
element2 = tool.Ifc.get_entity(obj2)
|
||||||
if element1.is_a("IfcAnnotation"):
|
if element1.is_a("IfcAnnotation"):
|
||||||
other_selected_object = obj2
|
other_selected_object = obj2
|
||||||
annotation_obj = obj1
|
|
||||||
bpy.context.view_layer.objects.active = obj1
|
bpy.context.view_layer.objects.active = obj1
|
||||||
elif element2.is_a("IfcAnnotation"):
|
elif element2.is_a("IfcAnnotation"):
|
||||||
other_selected_object = obj1
|
other_selected_object = obj1
|
||||||
annotation_obj = obj2
|
|
||||||
bpy.context.view_layer.objects.active = obj2
|
bpy.context.view_layer.objects.active = obj2
|
||||||
context.active_object.BIMAssignedProductProperties.relating_product = other_selected_object
|
context.active_object.BIMAssignedProductProperties.relating_product = other_selected_object
|
||||||
bpy.ops.bim.edit_assigned_product()
|
bpy.ops.bim.edit_assigned_product()
|
||||||
|
|||||||
Reference in New Issue
Block a user