From 33ef93f4a6ed66dcd06733b3909e647b33faa698 Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Fri, 13 Jul 2007 12:32:34 +0000
Subject: * ObjectAddPacket now confined to ClientView,´using
PrimitiveBaseShape instead - w00t!
---
OpenSim/Region/Environment/Scenes/SceneObject.cs | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes/SceneObject.cs')
diff --git a/OpenSim/Region/Environment/Scenes/SceneObject.cs b/OpenSim/Region/Environment/Scenes/SceneObject.cs
index 93b6e8d..5eed115 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObject.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObject.cs
@@ -30,6 +30,7 @@ using System.Text;
using libsecondlife;
using libsecondlife.Packets;
using OpenSim.Framework.Interfaces;
+using OpenSim.Framework.Types;
using OpenSim.Physics.Manager;
namespace OpenSim.Region.Environment.Scenes
@@ -67,12 +68,12 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- public SceneObject(ulong regionHandle, Scene world, ObjectAddPacket addPacket, LLUUID ownerID, uint localID)
+ public SceneObject(ulong regionHandle, Scene world, LLUUID ownerID, uint localID, LLVector3 pos, PrimitiveBaseShape shape)
{
m_regionHandle = regionHandle;
m_world = world;
- this.Pos = addPacket.ObjectData.RayEnd;
- this.CreateRootFromPacket(addPacket, ownerID, localID);
+ this.Pos = pos;
+ this.CreateRootFromPacket(ownerID, localID, shape, pos );
}
///
@@ -90,9 +91,9 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- public void CreateRootFromPacket(ObjectAddPacket addPacket, LLUUID agentID, uint localID)
+ public void CreateRootFromPacket(LLUUID agentID, uint localID, PrimitiveBaseShape shape, LLVector3 pos)
{
- this.rootPrimitive = new Primitive( this.m_regionHandle, this.m_world, addPacket, agentID, localID, true, this, this);
+ this.rootPrimitive = new Primitive( this.m_regionHandle, this.m_world, agentID, localID, true, this, this, shape, pos);
this.children.Add(rootPrimitive);
this.ChildPrimitives.Add(this.rootUUID, this.rootPrimitive);
}
--
cgit v1.1