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
|
||||
{
|
||||
NonPhysicalGrabMovement(pos);
|
||||
//NonPhysicalGrabMovement(pos);
|
||||
}
|
||||
}
|
||||
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)
|
||||
{
|
||||
if((m_rootPart.Flags & PrimFlags.Scripted) == 0)
|
||||
{
|
||||
UpdateGroupPosition(pos);
|
||||
}
|
||||
AbsolutePosition = pos;
|
||||
m_rootPart.SendTerseUpdateToAllClients();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -2787,28 +2781,16 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
}
|
||||
else
|
||||
{
|
||||
NonPhysicalSpinMovement(newOrientation);
|
||||
//NonPhysicalSpinMovement(pos);
|
||||
}
|
||||
}
|
||||
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>
|
||||
/// Set the name of a prim
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue