mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
let the syntax file include its id again
This commit is contained in:
@@ -347,15 +347,24 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
|
||||
string s="";
|
||||
char[] trimc = new char[] {' ','\t', '\n', '\r'};
|
||||
while((s = sr.ReadLine()) != null)
|
||||
|
||||
s = sr.ReadLine();
|
||||
if(s == null)
|
||||
return;
|
||||
s = s.Trim(trimc);
|
||||
UUID id;
|
||||
if(!UUID.TryParse(s,out id))
|
||||
return;
|
||||
|
||||
while ((s = sr.ReadLine()) != null)
|
||||
{
|
||||
s = s.Trim(trimc);
|
||||
if(String.IsNullOrEmpty(s) || s.StartsWith("<!--"))
|
||||
if (String.IsNullOrEmpty(s) || s.StartsWith("<!--"))
|
||||
continue;
|
||||
sb.Append(s);
|
||||
}
|
||||
m_scriptSyntaxXML = sb.ToString();
|
||||
m_scriptSyntaxID = Util.ComputeSHA1UUID(m_scriptSyntaxXML);
|
||||
m_scriptSyntaxID = id;
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
a6ccf55f-ded5-9093-571c-478cadca66de
|
||||
<llsd><map><key>llsd-lsl-syntax-version</key><integer>2</integer>
|
||||
<key>controls</key>
|
||||
<map>
|
||||
|
||||
Reference in New Issue
Block a user