use is rather then == when comparing against None.

This commit is contained in:
2010-09-18 10:43:32 +00:00
parent 6963574a55
commit 868fdd80a2
22 changed files with 41 additions and 42 deletions

View File

@@ -76,7 +76,7 @@ def addget_shape_key_driver(obj, name="Key"):
for driver_s in obj.data.shape_keys.animation_data.drivers:
if driver_s.data_path == driver_path:
fcurve = driver_s
if fcurve == None:
if fcurve is None:
fcurve = obj.data.shape_keys.keys[name].driver_add("value")
fcurve.driver.type = 'AVERAGE'
new = True