diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-29 07:54:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-29 07:54:27 +0400 |
commit | 1d838454afb884cf7b288afc7b6915c779230ecb (patch) | |
tree | a8d433cd705f8f3b47e3bb272daccea320f66dba /light_field_tools | |
parent | 0fcd2037beda8c2ce5fbd29700b1fc5545a29d28 (diff) |
use identity comparison with None (as suggested by python)
Diffstat (limited to 'light_field_tools')
-rw-r--r-- | light_field_tools/light_field_tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/light_field_tools/light_field_tools.py b/light_field_tools/light_field_tools.py index e6bd0083..e8f81500 100644 --- a/light_field_tools/light_field_tools.py +++ b/light_field_tools/light_field_tools.py @@ -337,7 +337,7 @@ class OBJECT_OT_create_lightfield_basemesh(bpy.types.Operator): scene.objects.link(nobj) nobj.select = True - if scene.objects.active == None or scene.objects.active.mode == 'OBJECT': + if scene.objects.active is None or scene.objects.active.mode == 'OBJECT': scene.objects.active = nobj |