added obj check #14

Merged
Nika Kutsniashvili merged 1 commits from AlaaCG/add_mesh_BoltFactory:obj-check into main 2024-09-19 15:15:28 +02:00
Showing only changes of commit 5bbcc3d783 - Show all commits

View File

@ -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():