Page MenuHome

Deleting the last keyframe in Grease Pencil Dope Sheet will leave the channel visible, resulting in e.g. "View All" being broken
Closed, ResolvedPublicBUG

Description

Blender Version
Broken: blender-2.80.0-git.699193713fc0-windows64, 2.81, 2.82
Worked: ?

Short description of error
Deleting the last keyframe in Grease Pencil Dope Sheet will leave the channel (where it should vanish).
This has following bad consequences:

When "View All" is performed in an empty Dope Sheet in Grease Pencil mode, it zooms in really far and scrolling is broken.
Upon zooming, it resets the view to frame 0.

Exact steps for others to reproduce the error


Execute "View All" (Home or Pos1 key) in the Dope Sheet.
Now try to pan the view (with middle mouse button). The Dope Sheet will sometimes go blank or jump to extremely high frame numbers.
Zooming out often resets the view to frame zero.

Event Timeline

Antonio Vazquez (antoniov) lowered the priority of this task from 90 to 50.

I have tested in Windows and the dopesheet area is doing weird things when pan in MMB, also flash and the header contains NaN values.

@Alexander Gavrilov (angavrilov) Could you take a look?

Philipp Oeser (lichtwerk) changed the subtype of this task from "Report" to "Bug".Jan 24 2020, 2:40 PM

To me, the problem seems to be that the channel stays [where it should actually vanish after deleting the last keyframe].
Solving that would never get us in the situation of doing View All on an empty channel.

Also, if you are deleting that (empty) channel, blender will assert:

BLI_assert failed: /blender/source/blender/editors/animation/anim_deps.c:449, ANIM_animdata_freelist(), at 'ale->update == 0'
Philipp Oeser (lichtwerk) renamed this task from "View All" in Grease Pencil Dope Sheet is Broken to Deleting the last keyframe in Grease Pencil Dope Sheet will leave the channel, resulting in e.g. "View All" being broken.Jan 24 2020, 2:43 PM
Philipp Oeser (lichtwerk) renamed this task from Deleting the last keyframe in Grease Pencil Dope Sheet will leave the channel, resulting in e.g. "View All" being broken to Deleting the last keyframe in Grease Pencil Dope Sheet will leave the channel visible, resulting in e.g. "View All" being broken.
Philipp Oeser (lichtwerk) updated the task description. (Show Details)