mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +00:00
bim.select_representation_item - add poll message
This commit is contained in:
@@ -2421,7 +2421,10 @@ class SelectRepresentationItem(bpy.types.Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.scene.BIMGeometryProperties.representation_obj
|
if not context.scene.BIMGeometryProperties.representation_obj:
|
||||||
|
cls.poll_message_set("No object opened in item mode.")
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
obj = tool.Geometry.get_active_or_representation_obj()
|
obj = tool.Geometry.get_active_or_representation_obj()
|
||||||
|
|||||||
Reference in New Issue
Block a user