Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2012-09-12 02:55:14 +0400
committerDalai Felinto <dfelinto@gmail.com>2012-09-12 02:55:14 +0400
commitf0ea636b677aa8a47415cfdabd4eba27d2cb3446 (patch)
treef1f64d3c8bdfe05cdcb8253efa72867cdb86047d /source/blender/editors/space_logic
parent773ea9b93d01c27187b60928a5fbf84e464c150a (diff)
bugfix [#32538] 'Mouse Over Any' sensor 'Pulse' button missing since 2.5x [Patch] - based on the patch from HG1
Diffstat (limited to 'source/blender/editors/space_logic')
-rw-r--r--source/blender/editors/space_logic/logic_window.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/space_logic/logic_window.c b/source/blender/editors/space_logic/logic_window.c
index a042145309d..aef135ad617 100644
--- a/source/blender/editors/space_logic/logic_window.c
+++ b/source/blender/editors/space_logic/logic_window.c
@@ -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)