diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-21 20:07:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-21 20:07:00 +0400 |
commit | aa365137768da93df6d113023b47ab31ed68a87e (patch) | |
tree | 1ddd62458050fe2e3361f6be070885c8b0c91f15 /object_cloud_gen.py | |
parent | cd4a3104faa7e7769fb5f249d4e32dc06cd197c2 (diff) |
'NoneType' was being used where None is expected.
Diffstat (limited to 'object_cloud_gen.py')
-rw-r--r-- | object_cloud_gen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/object_cloud_gen.py b/object_cloud_gen.py index 243c0524..b8b6777b 100644 --- a/object_cloud_gen.py +++ b/object_cloud_gen.py @@ -254,7 +254,7 @@ class VIEW3D_PT_tools_cloud(View3DPanel): col = layout.column(align=True) col.operator("cloud.generate_cloud", text="DeGenerate") - elif active_obj == 'NoneType': + elif active_obj is None: layout = self.layout col = layout.column(align=True) @@ -332,7 +332,7 @@ class GenerateCloud(bpy.types.Operator): degenerate = degenerateCloud(active_object) if degenerate: - if active_object != 'NoneType': + if active_object is not None: # Degenerate Cloud mainObj = active_object @@ -394,7 +394,7 @@ class GenerateCloud(bpy.types.Operator): selectedObjects = bpy.context.selected_objects # Create a new object bounds - if selectedObjects == 'NoneType': + if selectedObjects is None: bounds = addNewObject(scene, "CloudBounds", []) |