forked from bartvdbraak/blender
Logic UI: small commit - set visible flag for sensor and actuator (so it works with the move logic bricks operator to be committed)
This commit is contained in:
parent
779368fd45
commit
ff51a96d58
@ -4564,6 +4564,9 @@ static void logic_buttons_new(bContext *C, ARegion *ar)
|
|||||||
{ // gotta check if the current state is visible or not
|
{ // gotta check if the current state is visible or not
|
||||||
uiLayout *split, *col;
|
uiLayout *split, *col;
|
||||||
|
|
||||||
|
/* make as visible, for move operator */
|
||||||
|
sens->flag |= SENS_VISIBLE;
|
||||||
|
|
||||||
split = uiLayoutSplit(layout, 0.95, 0);
|
split = uiLayoutSplit(layout, 0.95, 0);
|
||||||
col = uiLayoutColumn(split, 1);
|
col = uiLayoutColumn(split, 1);
|
||||||
uiLayoutSetContextPointer(col, "sensor", &ptr);
|
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
|
{ // gotta check if the current state is visible or not
|
||||||
uiLayout *split, *col;
|
uiLayout *split, *col;
|
||||||
|
|
||||||
|
/* make as visible, for move operator */
|
||||||
|
act->flag |= ACT_VISIBLE;
|
||||||
|
|
||||||
split = uiLayoutSplit(layout, 0.05, 0);
|
split = uiLayoutSplit(layout, 0.05, 0);
|
||||||
|
|
||||||
/* put inlink button to the left */
|
/* put inlink button to the left */
|
||||||
|
Loading…
Reference in New Issue
Block a user