GPv3: Fix missing tag in frames map
In `Layer::remove_frame` there is a case where the frame is not removed, but overridden by a null-frame. In this case, the frames map was not tagged, when it should have been.
This commit is contained in:
@@ -692,6 +692,7 @@ bool Layer::remove_frame(const FramesMapKey key)
|
||||
* null frame, we cannot just delete the frame. We need to replace it with a null frame. */
|
||||
if (!prev_frame.is_implicit_hold() && !prev_frame.is_null()) {
|
||||
this->frames_for_write().lookup(key) = GreasePencilFrame::null();
|
||||
this->tag_frames_map_changed();
|
||||
/* Since the original frame was replaced with a null frame, we consider the frame to be
|
||||
* successfully removed here. */
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user