bugfix [#32538] 'Mouse Over Any' sensor 'Pulse' button missing since 2.5x [Patch...
[blender.git] / source / blender / editors / space_logic / logic_window.c
index a042145309db8f4504c8137f363539dc200e38ef..aef135ad61783c3a1df096630d12fc7a66fb0a64 100644 (file)
@@ -3398,7 +3398,13 @@ static void draw_sensor_message(uiLayout *layout, PointerRNA *ptr)
 
 static void draw_sensor_mouse(uiLayout *layout, PointerRNA *ptr)
 {
-       uiItemR(layout, ptr, "mouse_event", 0, NULL, ICON_NONE);
+       uiLayout *split;
+
+       split = uiLayoutSplit(layout, 0.8f, FALSE);
+       uiItemR(split, ptr, "mouse_event", 0, NULL, ICON_NONE);
+
+       if (RNA_enum_get(ptr, "mouse_event") == BL_SENS_MOUSE_MOUSEOVER_ANY)
+               uiItemR(split, ptr, "use_pulse", UI_ITEM_R_TOGGLE, NULL, ICON_NONE);
 }
 
 static void draw_sensor_near(uiLayout *layout, PointerRNA *ptr)