mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Kan-Ed fix series.
Correct a condition where a prim is linked before it has been persisted for the first time and is then persisted through it's former SOG with a bad offset position.
This commit is contained in:
@@ -2812,10 +2812,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
parentPrim = targetPart.ParentGroup;
|
||||
childPrim = m_host.ParentGroup;
|
||||
}
|
||||
byte uf = childPrim.RootPart.UpdateFlag;
|
||||
// byte uf = childPrim.RootPart.UpdateFlag;
|
||||
childPrim.RootPart.UpdateFlag = 0;
|
||||
parentPrim.LinkToGroup(childPrim);
|
||||
childPrim.RootPart.UpdateFlag = uf;
|
||||
// if(uf != (Byte)0)
|
||||
// parent.RootPart.UpdateFlag = uf;
|
||||
}
|
||||
parentPrim.TriggerScriptChangedEvent(Changed.LINK);
|
||||
parentPrim.RootPart.AddFlag(PrimFlags.CreateSelected);
|
||||
|
||||
Reference in New Issue
Block a user