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_geodesic_domes
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_geodesic_domes')
-rw-r--r--add_mesh_geodesic_domes/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/add_mesh_geodesic_domes/__init__.py b/add_mesh_geodesic_domes/__init__.py
index 00ee10aa..e88f3184 100644
--- a/add_mesh_geodesic_domes/__init__.py
+++ b/add_mesh_geodesic_domes/__init__.py
@@ -54,7 +54,7 @@ def Geodesic_contex_menu(self, context):
obj = context.object
layout = self.layout
- if 'GeodesicDome' in obj.data.keys():
+ if obj.data is not None and 'GeodesicDome' in obj.data.keys():
props = layout.operator("mesh.generate_geodesic_dome", text="Change Geodesic Dome")
props.change = True
for prm in third_domes_panel_271.GeodesicDomeParameters():