Initial Grease Pencil 3.0 stage #106848

Merged
Falk David merged 224 commits from filedescriptor/blender:grease-pencil-v3 into main 2023-05-30 11:14:22 +02:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 22527b9bbc - Show all commits

View File

@ -419,6 +419,10 @@ Span<int> Layer::sorted_keys() const
int Layer::drawing_index_at(int frame) const
{
Span<int> sorted_keys = this->sorted_keys();
/* No keyframes, return no drawing. */
if (sorted_keys.size() == 0) {
return -1;
}
/* Before the first drawing, return no drawing. */
if (frame < sorted_keys.first()) {
return -1;