mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
bim.enable_editing_booleans - add poll message
This commit is contained in:
@@ -305,7 +305,10 @@ class EnableEditingBooleans(bpy.types.Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
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):
|
def execute(self, context):
|
||||||
props = context.scene.BIMBooleanProperties
|
props = context.scene.BIMBooleanProperties
|
||||||
|
|||||||
Reference in New Issue
Block a user