ClearPartAttachmentData before adding object to scene, not after
parent
8505ca88dd
commit
2e43343ca9
|
@ -962,6 +962,9 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
{
|
{
|
||||||
part.CreateSelected = true;
|
part.CreateSelected = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rootPart.Shape.PCode == (byte)PCode.Prim)
|
||||||
|
group.ClearPartAttachmentData();
|
||||||
}
|
}
|
||||||
|
|
||||||
group.ResetIDs();
|
group.ResetIDs();
|
||||||
|
@ -993,9 +996,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
|
|
||||||
if (!attachment)
|
if (!attachment)
|
||||||
{
|
{
|
||||||
if (rootPart.Shape.PCode == (byte)PCode.Prim)
|
|
||||||
group.ClearPartAttachmentData();
|
|
||||||
|
|
||||||
// Fire on_rez
|
// Fire on_rez
|
||||||
group.CreateScriptInstances(0, true, m_Scene.DefaultScriptEngine, 1);
|
group.CreateScriptInstances(0, true, m_Scene.DefaultScriptEngine, 1);
|
||||||
rootPart.ParentGroup.ResumeScripts();
|
rootPart.ParentGroup.ResumeScripts();
|
||||||
|
|
Loading…
Reference in New Issue