Fix: Unlinking GP layer from layer group

The `unlink_layer` function did not clear the parent pointer of the
layer itself.
This commit is contained in:
Falk David
2023-06-26 12:20:46 +02:00
parent 36b6b11d7d
commit befe6cb95c

View File

@@ -609,6 +609,7 @@ bool LayerGroup::unlink_layer(Layer *link)
{
if (BLI_remlink_safe(&this->children, link)) {
this->tag_nodes_cache_dirty();
link->base.parent = nullptr;
return true;
}
return false;