diff --git a/source/Boltfactory.py b/source/Boltfactory.py index 5c3c99f..2ff740b 100644 --- a/source/Boltfactory.py +++ b/source/Boltfactory.py @@ -474,7 +474,7 @@ def Bolt_contex_menu(self, context): obj = context.object layout = self.layout - if obj.data is not None and 'Bolt' in obj.data.keys(): + if obj and obj.data is not None and 'Bolt' in obj.data.keys(): props = layout.operator("mesh.bolt_add", text="Change Bolt") props.change = True for prm in BoltParameters():