mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
bim.enable_editing_booleans - add poll message
This commit is contained in:
@@ -305,7 +305,10 @@ class EnableEditingBooleans(bpy.types.Operator):
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return bpy.context.scene.BIMGeometryProperties.representation_obj
|
||||
if not bpy.context.scene.BIMGeometryProperties.representation_obj:
|
||||
cls.poll_message_set("To enable editing booleans object should be in item mode.")
|
||||
return False
|
||||
return True
|
||||
|
||||
def execute(self, context):
|
||||
props = context.scene.BIMBooleanProperties
|
||||
|
||||
Reference in New Issue
Block a user