From 1ffede887211c748d4426d6e68f179dac5a5bcfd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 16 Aug 2008 00:06:51 +0000 Subject: SCA_PythonController.cpp - Made errors in python print the controller name, useful when blender crashes on printing the python error which happens frequently. buttons_logic.c - NULL checks for game logic buttons, linking in groups with some logic links to objects outsude the group could crash blender. There are NULL checks for this case elsewhere so I assume it should be supported. CMakeLists.txt - remove YESIAMSTUPID option, is not used anymore. --- source/blender/src/buttons_logic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/src/buttons_logic.c') diff --git a/source/blender/src/buttons_logic.c b/source/blender/src/buttons_logic.c index 8788363c19b..cdb66714573 100644 --- a/source/blender/src/buttons_logic.c +++ b/source/blender/src/buttons_logic.c @@ -3183,7 +3183,8 @@ void logic_buts(void) while(cont) { for (iact=0; iacttotlinks; iact++) { act = cont->links[iact]; - act->flag |= ACT_LINKED; + if (act) + act->flag |= ACT_LINKED; } controller_state_mask |= cont->state_mask; cont = cont->next; @@ -3231,7 +3232,8 @@ void logic_buts(void) /* this controller is visible, mark all its actuator */ for (iact=0; iacttotlinks; iact++) { act = cont->links[iact]; - act->flag |= ACT_VISIBLE; + if (act) + act->flag |= ACT_VISIBLE; } uiBlockSetEmboss(block, UI_EMBOSSM); uiDefIconButBitS(block, TOG, CONT_DEL, B_DEL_CONT, ICON_X, xco, yco, 22, 19, &cont->flag, 0, 0, 0, 0, "Delete Controller"); -- cgit v1.2.3