show tooltips for menus, currently works for operators and enum properties which...
[blender.git] / source / blender / editors / interface / interface_regions.c
index 837a9d12af158ea45ffd84f8c509f65c448abcde..513f084b6e8dbc9fb35d16b3b092377ca5e5a85d 100644 (file)
@@ -398,7 +398,7 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
                }
        }
        
-       if(but->tip && strlen(but->tip)) {
+       if(but->tip && but->tip[0] != '\0') {
                BLI_strncpy(data->lines[data->totline], but->tip, sizeof(data->lines[0]));
                data->color[data->totline]= 0xFFFFFF;
                data->totline++;