mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Fix : Poll checking for file is not needed
This commit is contained in:
@@ -82,10 +82,6 @@ class CreateProjectLibrary(bpy.types.Operator):
|
|||||||
bl_label = "Create Project Library"
|
bl_label = "Create Project Library"
|
||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def poll(cls, context):
|
|
||||||
return IfcStore.get_file()
|
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
IfcStore.begin_transaction(self)
|
IfcStore.begin_transaction(self)
|
||||||
IfcStore.add_transaction_operation(self, rollback=self.rollback, commit=lambda data: True)
|
IfcStore.add_transaction_operation(self, rollback=self.rollback, commit=lambda data: True)
|
||||||
|
|||||||
Reference in New Issue
Block a user