mantis 8013: change attachment group to active group on attach from inventory
parent
2b1b013404
commit
ed555801a4
|
@ -1118,13 +1118,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||||
|
|
||||||
SceneObjectGroup objatt;
|
SceneObjectGroup objatt;
|
||||||
|
|
||||||
|
UUID rezGroupID = sp.ControllingClient.ActiveGroupId;
|
||||||
|
|
||||||
if (itemID != UUID.Zero)
|
if (itemID != UUID.Zero)
|
||||||
objatt = m_invAccessModule.RezObject(sp.ControllingClient,
|
objatt = m_invAccessModule.RezObject(sp.ControllingClient,
|
||||||
itemID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true,
|
itemID, rezGroupID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true,
|
||||||
false, false, sp.UUID, true);
|
false, false, sp.UUID, true);
|
||||||
else
|
else
|
||||||
objatt = m_invAccessModule.RezObject(sp.ControllingClient,
|
objatt = m_invAccessModule.RezObject(sp.ControllingClient,
|
||||||
null, assetID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true,
|
null, rezGroupID, assetID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true,
|
||||||
false, false, sp.UUID, true);
|
false, false, sp.UUID, true);
|
||||||
|
|
||||||
if (objatt == null)
|
if (objatt == null)
|
||||||
|
|
Loading…
Reference in New Issue