mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Show info message using annotation tool hotkeys without drawing loaded
This commit is contained in:
@@ -274,6 +274,10 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
||||
return operator.description or ""
|
||||
|
||||
def _execute(self, context):
|
||||
if not (camera := context.scene.camera) or not tool.Ifc.get_entity(camera):
|
||||
self.report({"ERROR"}, "No drawing active for annotation hotkeys.")
|
||||
return {"CANCELLED"}
|
||||
|
||||
self.props = context.scene.BIMAnnotationProperties
|
||||
getattr(self, f"hotkey_{self.hotkey}")()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user