From d4c17512855c4fcf3bb76b8ad45e0de190687a90 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 30 Sep 2008 14:42:25 +0000 Subject: [PATCH] * Fixed minor issue while building: If you do a raytraced object placement and a target isn't found, the object is rezzed at 0,0,0 - instead now it will place according to the position sent by the client. * We may instead want to abort and send a "Cannot Rez Here" message? --- OpenSim/Framework/IClientAPI.cs | 3 +-- OpenSim/Region/Environment/Scenes/Scene.cs | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 1c38011a8c..ddd1cd3d64 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs @@ -342,8 +342,6 @@ namespace OpenSim.Framework /// /// Returns the full name of the agent/avatar represented by this client /// - /// - /// string Name { get; } bool IsActive @@ -750,6 +748,7 @@ namespace OpenSim.Framework void SendLogoutPacket(); ClientInfo GetClientInfo(); + void SetClientInfo(ClientInfo info); void SetClientOption(string option, string value); string GetClientOption(string option); diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 88da9be279..bca1ff9b91 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -1608,6 +1608,10 @@ namespace OpenSim.Region.Environment.Scenes if (ei.HitTF) { pos = new Vector3(ei.ipoint.X, ei.ipoint.Y, ei.ipoint.Z); + } else + { + // fall back to our stupid functionality + pos = RayEnd; } return pos;