Fix #106966: Register undo-step when unlinking data-block #108452

Merged
Pratik Borhade merged 2 commits from PratikPB2123/blender:106966-undostep-id-block into blender-v3.6-release 2023-06-09 11:20:47 +02:00

2 Commits

Author SHA1 Message Date
Pratik Borhade 0ee030eff5 Move changes to else block 2023-06-09 14:48:09 +05:30
Pratik Borhade 0450c03fd5 Fix #106966: Resiter undo-step when unlinking data-block
When unlinking IDs like GN tree, materials undo step is not created.
To fix this, assign `undo_push_label` a string value for registering an
undo-step (with the help of `ED_undo_push`)
2023-06-09 14:48:09 +05:30