Fix: Value property in shape key tree rows
Missed in 0eed084cad
Pull Request: https://projects.blender.org/blender/blender/pulls/140045
This commit is contained in:
committed by
Pratik Borhade
parent
744904b0dd
commit
f88a7758d9
@@ -169,6 +169,11 @@ class ShapeKeyItem : public ui::AbstractTreeViewItem {
|
||||
uiLayoutSetPropDecorate(sub, false);
|
||||
PointerRNA shapekey_ptr = RNA_pointer_create_discrete(
|
||||
&shape_key_.key->id, &RNA_ShapeKey, shape_key_.kb);
|
||||
|
||||
if (shape_key_.index > 0) {
|
||||
sub->prop(&shapekey_ptr, "value", UI_ITEM_R_ICON_ONLY, std::nullopt, ICON_NONE);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user