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:
Sei Lisa 2017-08-19 16:14:01 +02:00 committed by Sei-Lisa
parent e77bddec30
commit 90bd72e1ff
3 changed files with 11 additions and 18 deletions

View file

@ -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()