Skip to content

Commit beb522e

Browse files
committed
Reverting dictionary optimizations
1 parent 7582c01 commit beb522e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/windows/models/properties_model.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,7 @@ def remove_keyframe(self, item):
239239
# Reduce # of clip properties we are saving (performance boost)
240240
clip_data = {property_key: clip_data[property_key]}
241241
if object_id:
242-
c.data = {'objects': {object_id: clip_data}}
243-
else:
244-
c.data = clip_data
242+
clip_data = {'objects': {object_id: clip_data}}
245243

246244
# Save changes
247245
if clip_updated:
@@ -357,9 +355,7 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
357355
# Reduce # of clip properties we are saving (performance boost)
358356
clip_data = {property_key: clip_data[property_key]}
359357
if object_id:
360-
c.data = {'objects': {object_id: clip_data}}
361-
else:
362-
c.data = clip_data
358+
clip_data = {'objects': {object_id: clip_data}}
363359

364360
# Save changes
365361
if clip_updated:
@@ -562,9 +558,7 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
562558
# Reduce # of clip properties we are saving (performance boost)
563559
clip_data = {property_key: clip_data.get(property_key)}
564560
if object_id:
565-
c.data = {'objects': {object_id: clip_data}}
566-
else:
567-
c.data = clip_data
561+
clip_data = {'objects': {object_id: clip_data}}
568562

569563
# Save changes
570564
if clip_updated:

0 commit comments

Comments
 (0)