Fixes use of the saved attachment point from asset
0.6.0-stable
Melanie Thielker 2008-10-04 16:45:38 +00:00
parent c28e8fcd67
commit 52963c180e
1 changed files with 4 additions and 5 deletions

View File

@ -454,13 +454,13 @@ namespace OpenSim.Region.Environment.Scenes
public SceneObjectGroup RezSingleAttachment(
IClientAPI remoteClient, UUID itemID, uint AttachmentPt)
{
SceneObjectGroup objatt = m_parentScene.RezObject(remoteClient, itemID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true,
SceneObjectGroup objatt = m_parentScene.RezObject(remoteClient,
itemID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true,
false, false, remoteClient.AgentId, true);
if (objatt != null)
{
objatt.SetAttachmentPoint(Convert.ToByte(AttachmentPt));
AttachObject(remoteClient, objatt.LocalId, AttachmentPt, Quaternion.Identity, objatt.AbsolutePosition);
objatt.ScheduleGroupForFullUpdate();
}
@ -531,9 +531,8 @@ namespace OpenSim.Region.Environment.Scenes
AttachmentPt = (uint)AttachmentPoint.LeftHand;
attachPos = Vector3.Zero;
}
m_log.Debug("[ATTACH]: Using attachpoint: " + AttachmentPt.ToString());
group.SetAttachmentPoint(Convert.ToByte(AttachmentPt));
// Saves and gets assetID
if (group.GetFromAssetID() == UUID.Zero)