GPv3: Add user count to drawings #110579

Merged
Falk David merged 7 commits from filedescriptor/blender:gpv3-drawing-user-count into main 2023-08-01 17:04:45 +02:00

7 Commits

Author SHA1 Message Date
Falk David 6aabac8864 Fix issues 2023-08-01 15:00:31 +02:00
Falk David b01fecbc68 Refactor to use `Layer::remove_frame` 2023-08-01 14:35:04 +02:00
Falk David c05b30b4a2 Make frame number `const` 2023-08-01 14:24:30 +02:00
Falk David 62f33d8540 Refactor function `has_no_users()` to `has_users()` 2023-08-01 14:24:30 +02:00
Falk David afdc3dbccb Add more context to doc-string 2023-08-01 14:24:30 +02:00
Falk David 319740bf4e Cleanup 2023-08-01 14:24:30 +02:00
Falk David 978a669ef5 GPv3: Add user count to drawings
This also adds a function to delete a frame in a layer. This will
decrement the user count of the drawing and delete it if there are no
users left. This is consistent with the way GPv2 worked.
2023-08-01 14:24:30 +02:00