Further fixes for OpenSim.
In OpenSim, llGetLinkNumber() returns 0 for single prims with a sitting avatar. On top of that, in older versions llGetLinkKey returns NULL_KEY for link number 0, and in newer ones it does so for link number 1. The present changes try to make sure that under either situation, the code behaves correctly for the core scripts.
This commit is contained in:
parent
e77bddec30
commit
90bd72e1ff
3 changed files with 11 additions and 18 deletions
|
@ -11,8 +11,8 @@ def main(argc, argv):
|
|||
prterr(u'Need exactly 1 argument (input filename)')
|
||||
return 1
|
||||
|
||||
# Regex that replaces a line by its OSS version when one's specified.
|
||||
os_re = re.compile(r'^( *)(.*?) // OSS::(.*)$', re.MULTILINE)
|
||||
# Regex that replaces a line with its OSS version when one's specified.
|
||||
os_re = re.compile(r'^( *)(.*?)// OSS::(.*)$', re.MULTILINE)
|
||||
|
||||
f = open(argv[1], "r");
|
||||
s = f.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue