fix attachments
parent
159fcbf150
commit
95b89dd450
|
@ -2332,13 +2332,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (e == null || attachment) // Single
|
if (e == null || attachment) // Single
|
||||||
{
|
{
|
||||||
SceneObjectGroup g = SceneObjectSerializer.FromOriginalXmlFormat(xmlData);
|
SceneObjectGroup g = SceneObjectSerializer.FromOriginalXmlFormat(xmlData);
|
||||||
|
if (!attachment)
|
||||||
g.RootPart.AttachPoint = g.RootPart.Shape.State;
|
{
|
||||||
g.RootPart.AttachOffset = g.AbsolutePosition;
|
g.RootPart.AttachPoint = g.RootPart.Shape.State;
|
||||||
g.RootPart.AttachRotation = g.GroupRotation;
|
g.RootPart.AttachOffset = g.AbsolutePosition;
|
||||||
if (g.RootPart.Shape.PCode != (byte)PCode.NewTree &&
|
g.RootPart.AttachRotation = g.GroupRotation;
|
||||||
g.RootPart.Shape.PCode != (byte)PCode.Tree)
|
if (g.RootPart.Shape.PCode != (byte)PCode.NewTree &&
|
||||||
g.RootPart.Shape.State = 0;
|
g.RootPart.Shape.PCode != (byte)PCode.Tree)
|
||||||
|
g.RootPart.Shape.State = 0;
|
||||||
|
}
|
||||||
|
|
||||||
objlist.Add(g);
|
objlist.Add(g);
|
||||||
veclist.Add(new Vector3(0, 0, 0));
|
veclist.Add(new Vector3(0, 0, 0));
|
||||||
|
|
Loading…
Reference in New Issue