Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-01-24 23:51:33 +0300
committerTon Roosendaal <ton@blender.org>2007-01-24 23:51:33 +0300
commit84b8e5b97bfdeeabccfaa223175651f3e7289259 (patch)
treeb44abbf3f68f664cbe60189b25e1a21f9d7b5f0c /source/blender/src/headerbuttons.c
parentd553eeef5de0171536ea3526411cd9ddfe34d8e1 (diff)
IRC reported bug: sometimes menu entries showed a name like "%l", caused
by imporper handling of separators in menus.
Diffstat (limited to 'source/blender/src/headerbuttons.c')
-rw-r--r--source/blender/src/headerbuttons.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c
index 7b283427492..43759b63782 100644
--- a/source/blender/src/headerbuttons.c
+++ b/source/blender/src/headerbuttons.c
@@ -337,7 +337,9 @@ int std_libbuttons(uiBlock *block, short xco, short yco,
if(id->lib) {
if(id->flag & LIB_INDIRECT) uiDefIconBut(block, BUT, 0, ICON_DATALIB,xco,yco,XIC,YIC, 0, 0, 0, 0, 0, "Indirect Library Datablock. Cannot change.");
- else uiDefIconBut(block, BUT, lib, ICON_PARLIB, xco,yco,XIC,YIC, 0, 0, 0, 0, 0, "Direct linked Library Datablock. Click to make local.");
+ else uiDefIconBut(block, BUT, lib, ICON_PARLIB, xco,yco,XIC,YIC, 0, 0, 0, 0, 0,
+ lib?"Direct linked Library Datablock. Click to make local.":"Direct linked Library Datablock, cannot make local."
+ );
xco+= XIC;
}