Merging r46725 through r46963 from trunk into soc-2011-tomato
[blender.git] / source / blender / editors / interface / interface_templates.c
index 6d1766c..30f8003 100644 (file)
@@ -579,8 +579,10 @@ void uiTemplateAnyID(uiLayout *layout, PointerRNA *ptr, const char *propname, co
        row = uiLayoutRow(layout, 1);
        
        /* Label - either use the provided text, or will become "ID-Block:" */
-       if (text)
-               uiItemL(row, text, ICON_NONE);
+       if (text) {
+               if (text[0])
+                       uiItemL(row, text, ICON_NONE);
+       }
        else
                uiItemL(row, "ID-Block:", ICON_NONE);