mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
ifcsverchok - fix poll error opening operator search
This commit is contained in:
@@ -183,7 +183,10 @@ class IFC_Sv_write_file(bpy.types.Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return any("IFC" in n for n in context.space_data.edit_tree.nodes.keys())
|
space = context.space_data
|
||||||
|
if not isinstance(space, bpy.types.SpaceNodeEditor):
|
||||||
|
return False
|
||||||
|
return any("IFC" in n for n in space.edit_tree.nodes.keys())
|
||||||
|
|
||||||
def ensure_hirarchy(self, file: ifcopenshell.file) -> None:
|
def ensure_hirarchy(self, file: ifcopenshell.file) -> None:
|
||||||
elements_in_buildings: set[ifcopenshell.entity_instance] = set()
|
elements_in_buildings: set[ifcopenshell.entity_instance] = set()
|
||||||
|
|||||||
Reference in New Issue
Block a user