From ff51a96d58f423a686cc9b195f0bf2361625fb1a Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 8 Jul 2010 09:25:18 +0000 Subject: [PATCH] Logic UI: small commit - set visible flag for sensor and actuator (so it works with the move logic bricks operator to be committed) --- source/blender/editors/space_logic/logic_window.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */