Skip to content

Commit

Permalink
frame movement speed fix
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushK52 committed Dec 22, 2023
1 parent be3fd8d commit 849d5bd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions utils/cache/cache_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,16 @@ def _cache_update_specific_timing(self, *args, **kwargs):
timing_func = getattr(cls, '_original_get_timing_from_uuid')
timing = timing_func(self, args[0])
if timing and timing.shot.project:
original_func = getattr(cls, '_original_get_timing_list_from_project')
timing_list = original_func(self, timing.shot.project.uuid)
if timing_list and len(timing_list):
StCache.add_all(timing_list, CacheKey.TIMING_DETAILS.value)
# original_func = getattr(cls, '_original_get_timing_list_from_project')
# timing_list = original_func(self, timing.shot.project.uuid)
# if timing_list and len(timing_list):
# StCache.add_all(timing_list, CacheKey.TIMING_DETAILS.value)

# updating shot list
original_func = getattr(cls, '_original_get_shot_list')
shot_list = original_func(self, timing.shot.project.uuid)
if shot_list:
StCache.add_all(shot_list, CacheKey.SHOT.value)

setattr(cls, '_original_update_specific_timing', cls.update_specific_timing)
setattr(cls, "update_specific_timing", _cache_update_specific_timing)
Expand Down

0 comments on commit 849d5bd

Please sign in to comment.