Fix: Gray out shape key when muted

Missed during migrating shape keys to tree view.

Pull Request: https://projects.blender.org/blender/blender/pulls/147798
This commit is contained in:
Pratik Borhade
2025-10-14 13:03:29 +02:00
committed by Pratik Borhade
parent 5be95161a4
commit 084f04ec09

View File

@@ -217,6 +217,9 @@ class ShapeKeyItem : public ui::AbstractTreeViewItem {
sub->prop(&shapekey_ptr, "mute", UI_ITEM_R_ICON_ONLY, std::nullopt, ICON_NONE);
sub->prop(&shapekey_ptr, "lock_shape", UI_ITEM_R_ICON_ONLY, std::nullopt, ICON_NONE);
if (shape_key_.kb->flag & KEYBLOCK_MUTE) {
row.active_set(false);
}
}
std::optional<bool> should_be_active() const override