From 5ca610d56a992f1de85dc1be7c074e7c62678b02 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 24 Sep 2015 06:32:40 +0100 Subject: [PATCH] bug fix, let ubODE see more than one mesh on cast ray --- .../Shared/Api/Implementation/LSL_Api.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index de4fce3438..8d40a38d94 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -869,19 +869,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api // Utility function for llRot2Euler - // normalize an angle between -PI and PI (-180 to +180 degrees) - protected double NormalizeAngle(double angle) - { - if (angle > -Math.PI && angle < Math.PI) - return angle; - - int numPis = (int)(Math.PI / angle); - double remainder = angle - Math.PI * numPis; - if (numPis % 2 == 1) - return Math.PI - angle; - return remainder; - } - public LSL_Vector llRot2Euler(LSL_Rotation q1) { m_host.AddScriptLPS(1); @@ -14236,7 +14223,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (dist == 0) return list; - RayFilterFlags rayfilter = RayFilterFlags.ClosestAndBackCull; + RayFilterFlags rayfilter = RayFilterFlags.BackFaceCull; if (checkTerrain) rayfilter |= RayFilterFlags.land; // if (checkAgents)