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:
parent
491eb30135
commit
841a5d882f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue