diff options
author | Vladimir Spivak(cwolf3d) <cwolf3d@gmail.com> | 2020-12-03 01:04:56 +0300 |
---|---|---|
committer | Vladimir Spivak(cwolf3d) <cwolf3d@gmail.com> | 2020-12-03 01:04:56 +0300 |
commit | 672cfe9c85e2ac71b97b5331d9034d23c9723d71 (patch) | |
tree | 1a0bf5bf5262c9743dff1d876923c9798ed34d64 /add_mesh_extra_objects | |
parent | 3b0a5df45ebf973ebd1e8839298ac5067c637728 (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__.py | 2 |
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(): |