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.
This commit is contained in:
@@ -63,7 +63,6 @@ OPTION(WITH_QUICKTIME "Enable Quicktime Support" OFF)
|
||||
OPTION(WITH_OPENEXR "Enable OpenEXR Support (http://www.openexr.com)" ON)
|
||||
OPTION(WITH_FFMPEG "Enable FFMPeg Support (http://ffmpeg.mplayerhq.hu/)" OFF)
|
||||
OPTION(WITH_OPENAL "Enable OpenAL Support (http://www.openal.org)" ON)
|
||||
OPTION(YESIAMSTUPID "Enable execution on 64-bit platforms" OFF)
|
||||
OPTION(WITH_OPENMP "Enable OpenMP (has to be supported by the compiler)" OFF)
|
||||
|
||||
IF(NOT WITH_GAMEENGINE AND WITH_PLAYER)
|
||||
|
@@ -3183,7 +3183,8 @@ void logic_buts(void)
|
||||
while(cont) {
|
||||
for (iact=0; iact<cont->totlinks; 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; iact<cont->totlinks; 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");
|
||||
|
@@ -248,7 +248,7 @@ void SCA_PythonController::Trigger(SCA_LogicManager* logicmgr)
|
||||
{
|
||||
// didn't compile, so instead of compile, complain
|
||||
// something is wrong, tell the user what went wrong
|
||||
printf("PYTHON SCRIPT ERROR:\n");
|
||||
printf("Python compile error from controller \"%s\": \n", GetName().Ptr());
|
||||
//PyRun_SimpleString(m_scriptText.Ptr());
|
||||
PyErr_Print();
|
||||
return;
|
||||
@@ -285,7 +285,7 @@ void SCA_PythonController::Trigger(SCA_LogicManager* logicmgr)
|
||||
else
|
||||
{
|
||||
// something is wrong, tell the user what went wrong
|
||||
printf("PYTHON SCRIPT ERROR:\n");
|
||||
printf("Python script error from controller \"%s\": \n", GetName().Ptr());
|
||||
PyErr_Print();
|
||||
//PyRun_SimpleString(m_scriptText.Ptr());
|
||||
}
|
||||
|
Reference in New Issue
Block a user