From e171ae899d3b78072f368de357dadeeae8808f8d Mon Sep 17 00:00:00 2001
From: BlueWall
Date: Tue, 28 Apr 2015 17:24:54 -0500
Subject: Revert "Enable grab feature (Ctrl+Drag) for non-physical link-sets
and add code to handle spin (Ctrl+Shift+Drag)"
We found that linksets can move if the root prim is unscripted. Will revert this until a fix can be implemented.
---
.../Region/Framework/Scenes/SceneObjectGroup.cs | 30 +++++-----------------
1 file changed, 6 insertions(+), 24 deletions(-)
(limited to 'OpenSim/Region/Framework/Scenes')
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 75da299..0a1a226 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -2672,26 +2672,20 @@ namespace OpenSim.Region.Framework.Scenes
}
else
{
- NonPhysicalGrabMovement(pos);
+ //NonPhysicalGrabMovement(pos);
}
}
else
{
- NonPhysicalGrabMovement(pos);
+ //NonPhysicalGrabMovement(pos);
}
}
}
- ///
- /// Apply possition for grabbing non-physical linksets (ctrl+drag)
- ///
- /// New Position
public void NonPhysicalGrabMovement(Vector3 pos)
{
- if((m_rootPart.Flags & PrimFlags.Scripted) == 0)
- {
- UpdateGroupPosition(pos);
- }
+ AbsolutePosition = pos;
+ m_rootPart.SendTerseUpdateToAllClients();
}
///
@@ -2787,29 +2781,17 @@ namespace OpenSim.Region.Framework.Scenes
}
else
{
- NonPhysicalSpinMovement(newOrientation);
+ //NonPhysicalSpinMovement(pos);
}
}
else
{
- NonPhysicalSpinMovement(newOrientation);
+ //NonPhysicalSpinMovement(pos);
}
}
}
///
- /// Apply rotation for spinning non-physical linksets (ctrl+shift+drag)
- ///
- /// New Rotation
- private void NonPhysicalSpinMovement(Quaternion newOrientation)
- {
- if ((m_rootPart.Flags & PrimFlags.Scripted) == 0)
- {
- UpdateGroupRotationR(newOrientation);
- }
- }
-
- ///
/// Set the name of a prim
///
///
--
cgit v1.1