Ant Landscape: Fix error in poll function

This raised an exception when I opened the search with developer
extras enabled in the user preferences.
This commit is contained in:
Jacques Lucke 2020-05-04 15:10:11 +02:00
parent 491eb30135
commit 841a5d882f
1 changed files with 1 additions and 1 deletions

View File

@ -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):