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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user