Python API

----------

Bugfix #5398: setting object layers from background render caused "bad call
to addqueue: 0 (18, 1)" messages to be sent to the console.  Add a check in
addqueue_ext() for G.background first before printing.
This commit is contained in:
Ken Hughes
2006-12-11 01:44:59 +00:00
parent e314b7a43d
commit 3d2dfe8631

View File

@@ -480,7 +480,7 @@ static void headmenu(ScrArea *sa)
static void addqueue_ext(short win, unsigned short event, short val, char ascii)
{
if (win<4 || !areawinar[win]) {
if(win==0) // other win ids are for mainwin & renderwin
if(win==0 && !G.background) /* other win ids are for mainwin & renderwin */
printf("bad call to addqueue: %d (%d, %d)\n", win, event, val);
}
else {