Add no-path guard now that we can use a poly
parent
cf7163194c
commit
803c65bc88
|
@ -412,9 +412,8 @@ class FastAppendCurve(pg.PlotCurveItem):
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
||||||
profiler = pg.debug.Profiler(
|
profiler = pg.debug.Profiler(
|
||||||
# disabled=False, #not pg_profile_enabled(),
|
disabled=not pg_profile_enabled(),
|
||||||
)
|
)
|
||||||
# p.setRenderHint(p.Antialiasing, True)
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
self._step_mode
|
self._step_mode
|
||||||
|
@ -434,13 +433,14 @@ class FastAppendCurve(pg.PlotCurveItem):
|
||||||
profiler('.drawLine()')
|
profiler('.drawLine()')
|
||||||
p.setPen(self.opts['pen'])
|
p.setPen(self.opts['pen'])
|
||||||
|
|
||||||
# else:
|
path = self.path
|
||||||
if self._use_poly:
|
if self._use_poly:
|
||||||
assert self.poly
|
assert self.poly
|
||||||
p.drawPolyline(self.poly)
|
p.drawPolyline(self.poly)
|
||||||
profiler('.drawPolyline()')
|
profiler('.drawPolyline()')
|
||||||
else:
|
|
||||||
p.drawPath(self.path)
|
elif path:
|
||||||
|
p.drawPath(path)
|
||||||
profiler('.drawPath()')
|
profiler('.drawPath()')
|
||||||
|
|
||||||
# TODO: try out new work from `pyqtgraph` main which should
|
# TODO: try out new work from `pyqtgraph` main which should
|
||||||
|
|
Loading…
Reference in New Issue