mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Script State Fix: Step 1
Add Engine=xxx attribute and check for it's presence. Ignore state data written bby another engine
This commit is contained in:
@@ -1266,6 +1266,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
XmlAttribute assetID = doc.CreateAttribute("", "Asset", "");
|
||||
assetID.Value = instance.AssetID.ToString();
|
||||
stateData.Attributes.Append(assetID);
|
||||
XmlAttribute engineName = doc.CreateAttribute("", "Engine", "");
|
||||
engineName.Value = ScriptEngineName;
|
||||
stateData.Attributes.Append(engineName);
|
||||
doc.AppendChild(stateData);
|
||||
|
||||
// Add <ScriptState>...</ScriptState>
|
||||
@@ -1388,6 +1391,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
XmlElement rootE = (XmlElement)rootL[0];
|
||||
|
||||
if (rootE.GetAttribute("Engine") != ScriptEngineName)
|
||||
return;
|
||||
|
||||
if (rootE.GetAttribute("UUID") != itemID.ToString())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user