Fix last values, must be pulled from source data in step mode

incremental_update_paths
Tyler Goodlet 2022-05-20 16:52:44 -04:00
parent fa30df36ba
commit 432d4545c2
1 changed files with 5 additions and 9 deletions

View File

@ -809,6 +809,8 @@ class Flow(msgspec.Struct): # , frozen=True):
# full input data # full input data
x = array['index'] x = array['index']
y = array[array_key] y = array[array_key]
x_last = x[-1]
y_last = y[-1]
# inview data # inview data
x_iv = in_view['index'] x_iv = in_view['index']
@ -825,7 +827,7 @@ class Flow(msgspec.Struct): # , frozen=True):
) )
profiler('generated step mode data') profiler('generated step mode data')
( out = (
x, x,
y, y,
x_iv, x_iv,
@ -842,9 +844,9 @@ class Flow(msgspec.Struct): # , frozen=True):
self._iflat_last, self._iflat_last,
profiler, profiler,
) )
input_data = out[:-1]
x_last = x[-1] w = 0.5
y_last = y[-1]
graphics._last_line = QLineF( graphics._last_line = QLineF(
x_last - 0.5, 0, x_last - 0.5, 0,
x_last + 0.5, 0, x_last + 0.5, 0,
@ -856,12 +858,6 @@ class Flow(msgspec.Struct): # , frozen=True):
should_redraw = bool(append_diff) should_redraw = bool(append_diff)
draw_last = False draw_last = False
input_data = (
x,
y,
x_iv,
y_iv,
)
# compute the length diffs between the first/last index entry in # compute the length diffs between the first/last index entry in
# the input data and the last indexes we have on record from the # the input data and the last indexes we have on record from the