From 79200ed27031f03fca9e7bfb7e04c93b4759fbe4 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Sat, 15 Feb 2014 17:10:20 -0800 Subject: Fix displacement and location operations on legacy trees and grass in the 'load oar' and 'scene' commands. Before they were ignored but the code now relies on the SOG.IsAttachment function for attachmentness. --- OpenSim/Region/Application/OpenSim.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 77b9440..3d80c6e 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -559,7 +559,7 @@ namespace OpenSim { scene.ForEachSOG(delegate(SceneObjectGroup sog) { - if (sog.AttachmentPoint == 0) + if (!sog.IsAttachment) { sog.RootPart.UpdateRotation(rot * sog.GroupRotation); Vector3 offset = sog.AbsolutePosition - center; @@ -588,7 +588,7 @@ namespace OpenSim { scene.ForEachSOG(delegate(SceneObjectGroup sog) { - if (sog.AttachmentPoint == 0) + if (!sog.IsAttachment) { if (sog.RootPart.AbsolutePosition.Z < minZ) minZ = sog.RootPart.AbsolutePosition.Z; @@ -600,7 +600,7 @@ namespace OpenSim { scene.ForEachSOG(delegate(SceneObjectGroup sog) { - if (sog.AttachmentPoint == 0) + if (!sog.IsAttachment) { Vector3 tmpRootPos = sog.RootPart.AbsolutePosition; tmpRootPos.Z -= minZ; @@ -640,7 +640,7 @@ namespace OpenSim { scene.ForEachSOG(delegate(SceneObjectGroup sog) { - if (sog.AttachmentPoint == 0) + if (!sog.IsAttachment) sog.UpdateGroupPosition(sog.AbsolutePosition + offset); }); }); -- cgit v1.1