remove undo state storage in a few places where it's pointless
no functional effect - existing bugs still remainbulletsim
parent
6fc74b36d1
commit
86f45f6fe7
OpenSim/Region/Framework/Scenes
Serialization
|
@ -3803,8 +3803,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
m_redo.Clear();
|
m_redo.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
StoreUndoState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntityIntersection TestIntersection(Ray iray, Quaternion parentrot)
|
public EntityIntersection TestIntersection(Ray iray, Quaternion parentrot)
|
||||||
|
|
|
@ -102,7 +102,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
||||||
sceneObject.AddPart(part);
|
sceneObject.AddPart(part);
|
||||||
part.LinkNum = linkNum;
|
part.LinkNum = linkNum;
|
||||||
part.TrimPermissions();
|
part.TrimPermissions();
|
||||||
part.StoreUndoState();
|
|
||||||
reader.Close();
|
reader.Close();
|
||||||
sr.Close();
|
sr.Close();
|
||||||
}
|
}
|
||||||
|
@ -236,15 +235,14 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
||||||
if (originalLinkNum != 0)
|
if (originalLinkNum != 0)
|
||||||
part.LinkNum = originalLinkNum;
|
part.LinkNum = originalLinkNum;
|
||||||
|
|
||||||
part.StoreUndoState();
|
|
||||||
reader.Close();
|
reader.Close();
|
||||||
sr.Close();
|
sr.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Script state may, or may not, exist. Not having any, is NOT
|
// Script state may, or may not, exist. Not having any, is NOT
|
||||||
// ever a problem.
|
// ever a problem.
|
||||||
|
|
||||||
sceneObject.LoadScriptState(doc);
|
sceneObject.LoadScriptState(doc);
|
||||||
|
|
||||||
return sceneObject;
|
return sceneObject;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
Loading…
Reference in New Issue