diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-04 01:58:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-04 01:58:25 +0400 |
commit | 75d99d9b02025abc364c806cb22e34389a875a58 (patch) | |
tree | 960547e80a2af338e53679f3fbcd7c32afd44cf3 /render_povray | |
parent | f0986beef32ff23dd7c61ebdc531a46958efca16 (diff) |
change comparisons with None
Diffstat (limited to 'render_povray')
-rw-r--r-- | render_povray/render.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index f7c80d9a..c5f6f334 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -751,7 +751,7 @@ def write_pov(filename, scene=None, info_callback=None): # # Grab materials attached to object instances ... # if hasattr(ob, 'material_slots'): # for ms in ob.material_slots: -# if ms.material != None and ms.link == 'OBJECT': +# if ms.material is not None and ms.link == 'OBJECT': # if ms.material in obmatslist: # return False # else: @@ -761,7 +761,7 @@ def write_pov(filename, scene=None, info_callback=None): # # Grab materials attached to object instances ... # if hasattr(ob, 'material_slots'): # for ms in ob.material_slots: -# if ms.material != None and ms.link == 'OBJECT': +# if ms.material is not None and ms.link == 'OBJECT': # # If there is at least one material slot linked to the object # # and not the data (mesh), always create a new, "private" data instance. # return True @@ -779,7 +779,7 @@ def write_pov(filename, scene=None, info_callback=None): has_local_mats = False key = [dataname] for ms in ob.material_slots: - if ms.material != None: + if ms.material is not None: key.append(ms.material.name) if ms.link == 'OBJECT' and not has_local_mats: has_local_mats = True @@ -1003,7 +1003,7 @@ def write_pov(filename, scene=None, info_callback=None): name = string_strip_hyphen(bpy.path.clean_name(name_orig)) dataname = string_strip_hyphen(bpy.path.clean_name(dataname_orig)) ## for slot in ob.material_slots: -## if slot.material != None and slot.link == 'OBJECT': +## if slot.material is not None and slot.link == 'OBJECT': ## obmaterial = slot.material ############################################# @@ -1187,7 +1187,7 @@ def write_pov(filename, scene=None, info_callback=None): for col, index in vertCols.items(): #if me_materials: material = me_materials[col[3]] - if me_materials == None: #XXX working? + if me_materials is None: #XXX working? material_finish = DEF_MAT_NAME # not working properly, trans = 0.0 |