Short-circuit rendering on no 1d-data; avoid m4 layer crash

log_linearized_curve_overlays
Tyler Goodlet 2023-03-13 12:18:54 -04:00
parent 1aab9f1f81
commit 889e920796
1 changed files with 4 additions and 0 deletions

View File

@ -192,6 +192,10 @@ class Renderer(msgspec.Struct):
) = fmt_out
if not x_1d.size:
log.warning(f'{array_key} has no `.size`?')
return
# redraw conditions
if (
prepend_length > 0