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.inv-download
parent
38459104eb
commit
e171ae899d
|
@ -2672,26 +2672,20 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NonPhysicalGrabMovement(pos);
|
//NonPhysicalGrabMovement(pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NonPhysicalGrabMovement(pos);
|
//NonPhysicalGrabMovement(pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Apply possition for grabbing non-physical linksets (ctrl+drag)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="pos">New Position</param>
|
|
||||||
public void NonPhysicalGrabMovement(Vector3 pos)
|
public void NonPhysicalGrabMovement(Vector3 pos)
|
||||||
{
|
{
|
||||||
if((m_rootPart.Flags & PrimFlags.Scripted) == 0)
|
AbsolutePosition = pos;
|
||||||
{
|
m_rootPart.SendTerseUpdateToAllClients();
|
||||||
UpdateGroupPosition(pos);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -2787,28 +2781,16 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NonPhysicalSpinMovement(newOrientation);
|
//NonPhysicalSpinMovement(pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NonPhysicalSpinMovement(newOrientation);
|
//NonPhysicalSpinMovement(pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Apply rotation for spinning non-physical linksets (ctrl+shift+drag)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="newOrientation">New Rotation</param>
|
|
||||||
private void NonPhysicalSpinMovement(Quaternion newOrientation)
|
|
||||||
{
|
|
||||||
if ((m_rootPart.Flags & PrimFlags.Scripted) == 0)
|
|
||||||
{
|
|
||||||
UpdateGroupRotationR(newOrientation);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set the name of a prim
|
/// Set the name of a prim
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue