added obj check #14
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user