mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Bug fix for clicking on an object that has left the system.
This commit is contained in:
parent
463ea5e3b3
commit
d480af74a0
@ -64,7 +64,11 @@ class aiWebServer(SystemInformation):
|
|||||||
for j, k in kw.iteritems():
|
for j, k in kw.iteritems():
|
||||||
doIdRequested = int(k)
|
doIdRequested = int(k)
|
||||||
#print j,k
|
#print j,k
|
||||||
memberList = inspect.getmembers(simbase.air.doId2do[doIdRequested])
|
try:
|
||||||
|
memberList = inspect.getmembers(simbase.air.doId2do[doIdRequested])
|
||||||
|
except KeyError:
|
||||||
|
replyTo.respond('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n<html>\n<head>\n<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">\n<TITLE>OBJ Gone</title>\n</head><body>The object is no longer on the system</body>\n</HTML>')
|
||||||
|
return
|
||||||
memberList.sort()
|
memberList.sort()
|
||||||
memberList.reverse()
|
memberList.reverse()
|
||||||
while memberList:
|
while memberList:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user