From c5121203895123d03d3f558c607ca74bb831aba3 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Fri, 25 Jul 2008 20:45:06 +0000 Subject: Attempt to update viewer for some physics status changes in SOP --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index a5daabb..993e8c7 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -2003,10 +2003,10 @@ namespace OpenSim.Region.Environment.Scenes public void ScriptSetPhysicsStatus(bool UsePhysics) { - if (m_parentGroup != null) - { + if (m_parentGroup == null) + DoPhysicsPropertyUpdate(UsePhysics, false); + else m_parentGroup.ScriptSetPhysicsStatus(UsePhysics); - } } public void SculptTextureCallback(LLUUID textureID, AssetBase texture) @@ -2407,6 +2407,9 @@ namespace OpenSim.Region.Environment.Scenes public void StopMoveToTarget() { m_parentGroup.stopMoveToTarget(); + + m_parentGroup.ScheduleGroupForTerseUpdate(); + //m_parentGroup.ScheduleGroupForFullUpdate(); } public void StoreUndoState() -- cgit v1.1