Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Spivak(cwolf3d) <cwolf3d@gmail.com>2020-12-03 01:04:56 +0300
committerVladimir Spivak(cwolf3d) <cwolf3d@gmail.com>2020-12-03 01:04:56 +0300
commit672cfe9c85e2ac71b97b5331d9034d23c9723d71 (patch)
tree1a0bf5bf5262c9743dff1d876923c9798ed34d64 /add_mesh_BoltFactory
parent3b0a5df45ebf973ebd1e8839298ac5067c637728 (diff)
Fixed errors in the console if obj.data is None
Errors appeared when calling the context menu on an object without data
Diffstat (limited to 'add_mesh_BoltFactory')
-rw-r--r--add_mesh_BoltFactory/Boltfactory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/add_mesh_BoltFactory/Boltfactory.py b/add_mesh_BoltFactory/Boltfactory.py
index 330df8ae..f2646704 100644
--- a/add_mesh_BoltFactory/Boltfactory.py
+++ b/add_mesh_BoltFactory/Boltfactory.py
@@ -481,7 +481,7 @@ def Bolt_contex_menu(self, context):
obj = context.object
layout = self.layout
- if 'Bolt' in obj.data.keys():
+ if 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():