2.5: Render
[blender-staging.git] / source / blender / editors / interface / interface_regions.c
index edde575f695542e307a79358d3873cac4263e5d0..c1129db8ebe5617fee0e13769f05c43b0992cef8 100644 (file)
@@ -374,8 +374,10 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
        if(ELEM3(but->type, TEX, IDPOIN, SEARCH_MENU)) {
                /* full string */
                ui_get_but_string(but, buf, sizeof(buf));
-               BLI_snprintf(data->lines[data->totline], sizeof(data->lines[0]), "Value: %s", buf);
-               data->totline++;
+               if(buf[0]) {
+                       BLI_snprintf(data->lines[data->totline], sizeof(data->lines[0]), "Value: %s", buf);
+                       data->totline++;
+               }
        }
 
        if(but->rnaprop) {