Thank you very much, ChrisIndigo for a patch that:
If a script updates an object to the same position or rotation offset, the object triggers an update and storage of the object. This become more prevalent in sensor and timer events which may be firing frequently.0.6.0-stable
parent
00751ab6f1
commit
82e3698f59
|
@ -2099,29 +2099,45 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="pos"></param>
|
/// <param name="pos"></param>
|
||||||
public void UpdateOffSet(LLVector3 pos)
|
public void UpdateOffSet(LLVector3 pos)
|
||||||
|
{
|
||||||
|
if ((pos.X != OffsetPosition.X) ||
|
||||||
|
(pos.Y != OffsetPosition.Y) ||
|
||||||
|
(pos.Z != OffsetPosition.Z))
|
||||||
{
|
{
|
||||||
LLVector3 newPos = new LLVector3(pos.X, pos.Y, pos.Z);
|
LLVector3 newPos = new LLVector3(pos.X, pos.Y, pos.Z);
|
||||||
OffsetPosition = newPos;
|
OffsetPosition = newPos;
|
||||||
ScheduleTerseUpdate();
|
ScheduleTerseUpdate();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void UpdateGroupPosition(LLVector3 pos)
|
public void UpdateGroupPosition(LLVector3 pos)
|
||||||
|
{
|
||||||
|
if ((pos.X != GroupPosition.X) ||
|
||||||
|
(pos.Y != GroupPosition.Y) ||
|
||||||
|
(pos.Z != GroupPosition.Z))
|
||||||
{
|
{
|
||||||
LLVector3 newPos = new LLVector3(pos.X, pos.Y, pos.Z);
|
LLVector3 newPos = new LLVector3(pos.X, pos.Y, pos.Z);
|
||||||
GroupPosition = newPos;
|
GroupPosition = newPos;
|
||||||
ScheduleTerseUpdate();
|
ScheduleTerseUpdate();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region rotation
|
#region rotation
|
||||||
|
|
||||||
public void UpdateRotation(LLQuaternion rot)
|
public void UpdateRotation(LLQuaternion rot)
|
||||||
|
{
|
||||||
|
if ((rot.X != RotationOffset.X) ||
|
||||||
|
(rot.Y != RotationOffset.Y) ||
|
||||||
|
(rot.Z != RotationOffset.Z) ||
|
||||||
|
(rot.W != RotationOffset.W))
|
||||||
{
|
{
|
||||||
//StoreUndoState();
|
//StoreUndoState();
|
||||||
RotationOffset = new LLQuaternion(rot.X, rot.Y, rot.Z, rot.W);
|
RotationOffset = new LLQuaternion(rot.X, rot.Y, rot.Z, rot.W);
|
||||||
ScheduleTerseUpdate();
|
ScheduleTerseUpdate();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue