* refactor: Remove group changed responsibilty from ScheduleGroupForTerseUpdate

0.6.0-stable
Justin Clarke Casey 2008-06-27 15:04:35 +00:00
parent afd2a4b206
commit 6175021300
2 changed files with 8 additions and 3 deletions

View File

@ -1551,8 +1551,6 @@ namespace OpenSim.Region.Environment.Scenes
/// </summary> /// </summary>
public void ScheduleGroupForTerseUpdate() public void ScheduleGroupForTerseUpdate()
{ {
HasGroupChanged = true;
lock (m_parts) lock (m_parts)
{ {
foreach (SceneObjectPart part in m_parts.Values) foreach (SceneObjectPart part in m_parts.Values)
@ -2165,7 +2163,7 @@ namespace OpenSim.Region.Environment.Scenes
m_scene.PhysicsScene.AddPhysicsActorTaint(part.PhysActor); m_scene.PhysicsScene.AddPhysicsActorTaint(part.PhysActor);
} }
HasGroupChanged = true;
ScheduleGroupForTerseUpdate(); ScheduleGroupForTerseUpdate();
} }
} }
@ -2254,6 +2252,8 @@ namespace OpenSim.Region.Environment.Scenes
} }
AbsolutePosition = newPos; AbsolutePosition = newPos;
HasGroupChanged = true;
ScheduleGroupForTerseUpdate(); ScheduleGroupForTerseUpdate();
} }
@ -2280,6 +2280,8 @@ namespace OpenSim.Region.Environment.Scenes
m_rootPart.RotationOffset.Z); m_rootPart.RotationOffset.Z);
m_scene.PhysicsScene.AddPhysicsActorTaint(m_rootPart.PhysActor); m_scene.PhysicsScene.AddPhysicsActorTaint(m_rootPart.PhysActor);
} }
HasGroupChanged = true;
ScheduleGroupForTerseUpdate(); ScheduleGroupForTerseUpdate();
} }
@ -2299,6 +2301,8 @@ namespace OpenSim.Region.Environment.Scenes
m_scene.PhysicsScene.AddPhysicsActorTaint(m_rootPart.PhysActor); m_scene.PhysicsScene.AddPhysicsActorTaint(m_rootPart.PhysActor);
} }
AbsolutePosition = pos; AbsolutePosition = pos;
HasGroupChanged = true;
ScheduleGroupForTerseUpdate(); ScheduleGroupForTerseUpdate();
} }

View File

@ -2190,6 +2190,7 @@ namespace OpenSim.Region.Environment.Scenes
{ {
//StoreUndoState(); //StoreUndoState();
RotationOffset = new LLQuaternion(rot.X, rot.Y, rot.Z, rot.W); RotationOffset = new LLQuaternion(rot.X, rot.Y, rot.Z, rot.W);
ParentGroup.HasGroupChanged = true;
ScheduleTerseUpdate(); ScheduleTerseUpdate();
} }
} }