@@ -196,7 +196,7 @@ def remove_keyframe(self, item):
196
196
197
197
# Create reference
198
198
clip_data = c .data
199
- if object_id is not None :
199
+ if object_id :
200
200
clip_data = c .data .get ('objects' ).get (object_id )
201
201
202
202
if property_key in clip_data : # Update clip attribute
@@ -237,7 +237,7 @@ def remove_keyframe(self, item):
237
237
238
238
# Reduce # of clip properties we are saving (performance boost)
239
239
clip_data = {property_key : clip_data [property_key ]}
240
- if object_id is not None :
240
+ if object_id :
241
241
clip_data = {'objects' : {object_id : clip_data }}
242
242
243
243
# Save changes
@@ -281,7 +281,7 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
281
281
if c :
282
282
# Create reference
283
283
clip_data = c .data
284
- if object_id is not None :
284
+ if object_id :
285
285
clip_data = c .data .get ('objects' ).get (object_id )
286
286
287
287
# Update clip attribute
@@ -352,7 +352,7 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
352
352
353
353
# Reduce # of clip properties we are saving (performance boost)
354
354
clip_data = {property_key : clip_data [property_key ]}
355
- if object_id is not None :
355
+ if object_id :
356
356
clip_data = {'objects' : {object_id : clip_data }}
357
357
358
358
# Save changes
@@ -430,7 +430,7 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
430
430
431
431
# Create reference
432
432
clip_data = c .data
433
- if object_id is not None :
433
+ if object_id :
434
434
clip_data = c .data .get ('objects' ).get (object_id )
435
435
436
436
# Update clip attribute
@@ -555,7 +555,7 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
555
555
# Reduce # of clip properties we are saving (performance boost)
556
556
clip_data = {property_key : clip_data .get (property_key )}
557
557
558
- if object_id is not None :
558
+ if object_id :
559
559
clip_data = {'objects' : {object_id : clip_data }}
560
560
561
561
# Save changes
@@ -838,7 +838,7 @@ def update_model(self, filter=""):
838
838
self .add_property (property , filter , c , item_type )
839
839
840
840
# Insert objects properties from custom effetcs
841
- if objects_raw_properties is not None :
841
+ if objects_raw_properties :
842
842
for obj_id in objects_raw_properties :
843
843
objects_all_properties = OrderedDict (sorted (objects_raw_properties [obj_id ].items (), key = lambda x : x [1 ]['name' ]))
844
844
for property in objects_all_properties .items ():
0 commit comments