diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-19 03:35:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-19 03:35:45 +0300 |
commit | 9cc2ad1eaf941d8ed3b5542a3d5cdfccec7ba60b (patch) | |
tree | 43ea30ad9109c60886e523a3d7d38b6c9e2b2c23 /ant_landscape/__init__.py | |
parent | fb75f259861bf3dcd82abfab8b10b83da947053e (diff) |
Fix invalid string comparisons
Identity checks should never be used with strings, it may fail based on
Python's interning logic.
Diffstat (limited to 'ant_landscape/__init__.py')
-rw-r--r-- | ant_landscape/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ant_landscape/__init__.py b/ant_landscape/__init__.py index 68dd2342..8fbfb79d 100644 --- a/ant_landscape/__init__.py +++ b/ant_landscape/__init__.py @@ -391,7 +391,7 @@ class AntDisplaceSettingsPanel(bpy.types.Panel): if not ant.sphere_mesh: col = box.column() col.prop(ant, "edge_falloff") - if ant.edge_falloff is not "0": + if ant.edge_falloff != "0": col = box.column(align=True) col.prop(ant, "edge_level") if ant.edge_falloff in ["2", "3"]: @@ -401,7 +401,7 @@ class AntDisplaceSettingsPanel(bpy.types.Panel): col = box.column() col.prop(ant, "strata_type") - if ant.strata_type is not "0": + if ant.strata_type != "0": col = box.column() col.prop(ant, "strata") col = box.column() |