include menu ID's in tooltips when python tips are enabled, there was no way to find...
[blender.git] / source / blender / windowmanager / intern / wm.c
index bcd5cf38f8835740c1ec7dbe4101727db099f12b..a535c0bc1f8e783439e8aa0451de86ab4f81ba5a 100644 (file)
@@ -175,6 +175,12 @@ int WM_menutype_add(MenuType* mt)
        return 1;
 }
 
+/* inefficient but only used for tooltip code */
+int WM_menutype_contains(MenuType* mt)
+{
+       return (mt != NULL && BLI_findindex(&menutypes, mt) != -1);
+}
+
 void WM_menutype_freelink(MenuType* mt)
 {
        BLI_freelinkN(&menutypes, mt);