mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +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 ""
|
return operator.description or ""
|
||||||
|
|
||||||
def _execute(self, context):
|
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
|
self.props = context.scene.BIMAnnotationProperties
|
||||||
getattr(self, f"hotkey_{self.hotkey}")()
|
getattr(self, f"hotkey_{self.hotkey}")()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user