diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index 6cfc5c3f31..b06a885c47 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs @@ -104,11 +104,11 @@ namespace OpenSim.Framework [XmlIgnore] public HollowShape HollowShape { - get { return (HollowShape) (ProfileHollow & 0xf0); } + get { return (HollowShape)(ProfileCurve & 0xf0); } set { - byte oldValueMasked = (byte) (ProfileHollow & 0xf0); - ProfileHollow = (byte) (oldValueMasked | (byte) value); + byte oldValueMasked = (byte)(ProfileCurve & 0x0f); + ProfileCurve = (byte)(oldValueMasked | (byte)value); } } diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 934e4255dc..ea67ba384d 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -879,11 +879,6 @@ namespace OpenSim.Region.Environment.Scenes return myID; } - /// - /// - /// - /// - /// public virtual void AddNewPrim(LLUUID ownerID, LLVector3 pos, LLQuaternion rot, PrimitiveBaseShape shape) { // What we're *supposed* to do is raytrace from the camera position given by the client to the nearest collision @@ -994,7 +989,6 @@ namespace OpenSim.Region.Environment.Scenes public void AddEntity(SceneObjectGroup sceneObject) { m_innerScene.AddEntity(sceneObject); - } public void RemoveEntity(SceneObjectGroup sceneObject) diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index ca6e2fabe4..e44705cf0d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -589,6 +589,7 @@ namespace OpenSim.Region.Environment.Scenes m_parts.Add(newPart.UUID, newPart); SetPartAsRoot(newPart); } + public void SetRootPartOwner(SceneObjectPart part, LLUUID cAgentID, LLUUID cGroupID) { part.LastOwnerID = part.OwnerID; diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index abdbe4d47e..6bb00cb030 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -782,6 +782,9 @@ namespace OpenSim.Region.Environment.Scenes PrimitiveBaseShape shape = PrimitiveBaseShape.Create(); part.Shape = shape; + part.Name = "Primitive"; + part.OwnerID = LLUUID.Random(); + return part; }