Skip to content
Snippets Groups Projects
Commit aa365137 authored by Campbell Barton's avatar Campbell Barton
Browse files

'NoneType' was being used where None is expected.

parent cd4a3104
Branches
Tags
No related merge requests found
...@@ -254,7 +254,7 @@ class VIEW3D_PT_tools_cloud(View3DPanel): ...@@ -254,7 +254,7 @@ class VIEW3D_PT_tools_cloud(View3DPanel):
col = layout.column(align=True) col = layout.column(align=True)
col.operator("cloud.generate_cloud", text="DeGenerate") col.operator("cloud.generate_cloud", text="DeGenerate")
elif active_obj == 'NoneType': elif active_obj is None:
layout = self.layout layout = self.layout
col = layout.column(align=True) col = layout.column(align=True)
...@@ -332,7 +332,7 @@ class GenerateCloud(bpy.types.Operator): ...@@ -332,7 +332,7 @@ class GenerateCloud(bpy.types.Operator):
degenerate = degenerateCloud(active_object) degenerate = degenerateCloud(active_object)
if degenerate: if degenerate:
if active_object != 'NoneType': if active_object is not None:
# Degenerate Cloud # Degenerate Cloud
mainObj = active_object mainObj = active_object
...@@ -394,7 +394,7 @@ class GenerateCloud(bpy.types.Operator): ...@@ -394,7 +394,7 @@ class GenerateCloud(bpy.types.Operator):
selectedObjects = bpy.context.selected_objects selectedObjects = bpy.context.selected_objects
# Create a new object bounds # Create a new object bounds
if selectedObjects == 'NoneType': if selectedObjects is None:
bounds = addNewObject(scene, bounds = addNewObject(scene,
"CloudBounds", "CloudBounds",
[]) [])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment