diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-10 03:40:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-10 03:40:53 +0400 |
commit | a3643ee3d67a823b328b60a0cf08b335be0e147c (patch) | |
tree | 47411ae4c0fe7dfc50913cccb7f5c007927a8a05 /source/blender/editors/interface/interface_layout.c | |
parent | 795034c17d76bef2a15e576ac9c70ae2268a823b (diff) |
fix [#36073] Changing list items misses undo push
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 2a6a9600582..461d0b24d57 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -2429,6 +2429,11 @@ uiLayout *uiLayoutListBox(uiLayout *layout, uiList *ui_list, PointerRNA *ptr, Pr but->rnapoin = *actptr; but->rnaprop = actprop; + /* only for the undo string */ + if (but->flag & UI_BUT_UNDO) { + but->tip = RNA_property_description(actprop); + } + return (uiLayout *)box; } |