use is rather then == when comparing against None.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user