mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
bim.create_drawing - poll message
This commit is contained in:
@@ -204,7 +204,12 @@ class CreateDrawing(bpy.types.Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return bool(tool.Ifc.get() and tool.Drawing.is_drawing_active())
|
if not tool.Ifc.get():
|
||||||
|
return False
|
||||||
|
if not tool.Drawing.is_drawing_active():
|
||||||
|
cls.poll_message_set("No active drawing.")
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
def invoke(self, context, event):
|
def invoke(self, context, event):
|
||||||
# printing all drawings on shift+click
|
# printing all drawings on shift+click
|
||||||
|
|||||||
Reference in New Issue
Block a user