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_extra_objects
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_extra_objects')
-rw-r--r--add_mesh_extra_objects/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/add_mesh_extra_objects/__init__.py b/add_mesh_extra_objects/__init__.py
index fa7918ef..8a697ae5 100644
--- a/add_mesh_extra_objects/__init__.py
+++ b/add_mesh_extra_objects/__init__.py
@@ -249,7 +249,7 @@ def Extras_contex_menu(self, context):
obj = context.object
layout = self.layout
- if obj == None:
+ if obj == None or obj.data is None:
return
if 'Gear' in obj.data.keys():