mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
Remove OrderedDict and force correct order for animation data
- Using a regular `dict` as intermediate type will not force any specific order and thus can have any sorting
This commit is contained in:
parent
3224208a6b
commit
9b7fc5302b
1 changed files with 7 additions and 6 deletions
|
|
@ -15,12 +15,13 @@ class CreateYetiCache(avalon.maya.Creator):
|
|||
def __init__(self, *args, **kwargs):
|
||||
super(CreateYetiCache, self).__init__(*args, **kwargs)
|
||||
|
||||
data = OrderedDict(**self.data)
|
||||
data["peroll"] = 0
|
||||
self.data["peroll"] = 0
|
||||
|
||||
# Add animation data without step and handles
|
||||
anim_data = lib.collect_animation_data()
|
||||
data.update({"startFrame": anim_data["startFrame"],
|
||||
"endFrame": anim_data["endFrame"],
|
||||
"samples": 3})
|
||||
anim_data.pop("step")
|
||||
anim_data.pop("handles")
|
||||
self.data.update(anim_data)
|
||||
|
||||
self.data = data
|
||||
# Add samples
|
||||
self.data["samples"] = 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue