Skip to content

Commit

Permalink
fix: Leftover broken conflict resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
in03 committed Dec 1, 2022
1 parent df2c10e commit 6ee0fb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
8 changes: 2 additions & 6 deletions src/dpg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ Collapsed=0
[Window][###109]
Pos=184,195
Size=416,110
=======
Collapsed=0

[Window][###100]
Pos=247,200
Size=290,100
Expand All @@ -62,8 +63,3 @@ Pos=163,200
Size=458,100
Collapsed=0

[Window][###94]
Pos=163,200
Size=458,100


16 changes: 1 addition & 15 deletions src/patchwork/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,6 @@ def init():

global current_timecode
current_timecode = copy.copy(resolve.active_timeline.timecode)

global current_frame_rate
current_frame_rate = copy.copy(resolve.active_timeline.settings.frame_rate)

global refresh_now
refresh_now = False
Expand Down Expand Up @@ -687,20 +684,9 @@ async def render():

# TODO: Check timeline is same as tracked timeline, disable changes page
# On each timeline change, ensure custom settings are enabled. Make it so.

current_frame_rate = copy.copy(resolve.active_timeline.settings.frame_rate)

logger.debug("[magenta]Ensure custom timeline settings enabled")
resolve.active_timeline.custom_settings(True)
await routines.check_timecode_starts_at_zero(current_frame_rate, current_timecode)


# RUN EVERY HALF SECOND REGARDLESS OF ENVIRONMENT STATE
current_timecode = copy.copy(resolve.active_timeline.timecode)


# Weird single frame offset
# TODO: Fix type error
current_frame = get_current_frame(current_frame_rate, current_timecode) #type: ignore

logger.debug("[magenta]Running complex routines")
await routines.refresh_add_status(markers, current_timecode, current_frame)
Expand Down

0 comments on commit 6ee0fb4

Please sign in to comment.