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>2010-07-08 13:25:18 +0400
committerDalai Felinto <dfelinto@gmail.com>2010-07-08 13:25:18 +0400
commitff51a96d58f423a686cc9b195f0bf2361625fb1a (patch)
tree65427528dc9d938304148407f0a9afe6567e9840 /source/blender
parent779368fd4524d35e9b1802a0e720ced3df059ada (diff)
Logic UI: small commit - set visible flag for sensor and actuator (so it works with the move logic bricks operator to be committed)
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_logic/logic_window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_logic/logic_window.c b/source/blender/editors/space_logic/logic_window.c
index 9f6fafb1053..5bc34183224 100644
--- a/source/blender/editors/space_logic/logic_window.c
+++ b/source/blender/editors/space_logic/logic_window.c
@@ -4564,6 +4564,9 @@ static void logic_buttons_new(bContext *C, ARegion *ar)
{ // gotta check if the current state is visible or not
uiLayout *split, *col;
+ /* make as visible, for move operator */
+ sens->flag |= SENS_VISIBLE;
+
split = uiLayoutSplit(layout, 0.95, 0);
col = uiLayoutColumn(split, 1);
uiLayoutSetContextPointer(col, "sensor", &ptr);
@@ -4627,6 +4630,9 @@ static void logic_buttons_new(bContext *C, ARegion *ar)
{ // gotta check if the current state is visible or not
uiLayout *split, *col;
+ /* make as visible, for move operator */
+ act->flag |= ACT_VISIBLE;
+
split = uiLayoutSplit(layout, 0.05, 0);
/* put inlink button to the left */