mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
whoops, forgot to delete some bits.
This commit is contained in:
@@ -67,17 +67,6 @@ class AddContext(bpy.types.Operator, Operator):
|
||||
self.report({'INFO'}, "Context added.")
|
||||
return {'FINISHED'}
|
||||
|
||||
def context_already_exists(ifc_data, context_type, context_identifier, target_view):
|
||||
# Check if the context already exists in the loaded IFC data
|
||||
for context in ifc_data.by_type("IfcContext"):
|
||||
if (
|
||||
context.is_a() == context_type
|
||||
and context.Name == context_identifier
|
||||
and context.Phase == target_view
|
||||
):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user