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:
authorJacques Lucke <mail@jlucke.com>2020-05-04 16:10:11 +0300
committerJacques Lucke <mail@jlucke.com>2020-05-04 16:10:11 +0300
commit841a5d882f1521c935b67da597341229d30bf033 (patch)
treefdf871fe93aac400e72ece5898791af512f8befa
parent491eb30135c08ef69af06ec10ec00501f1354af2 (diff)
Ant Landscape: Fix error in poll function
This raised an exception when I opened the search with developer extras enabled in the user preferences.
-rw-r--r--ant_landscape/ant_functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ant_landscape/ant_functions.py b/ant_landscape/ant_functions.py
index b4e1e1f5..3c3c2c71 100644
--- a/ant_landscape/ant_functions.py
+++ b/ant_landscape/ant_functions.py
@@ -137,7 +137,7 @@ class AntLandscapeRefresh(bpy.types.Operator):
@classmethod
def poll(cls, context):
ob = bpy.context.active_object
- return (ob.ant_landscape and not ob.ant_landscape['sphere_mesh'])
+ return (ob.ant_landscape and not ob.ant_landscape.sphere_mesh)
def execute(self, context):