diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index d36d9a0..c7c7831 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5464,15 +5464,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5464 | 5464 | ||
5465 | protected int GetNumberOfSides(SceneObjectPart part) | 5465 | protected int GetNumberOfSides(SceneObjectPart part) |
5466 | { | 5466 | { |
5467 | int sides = part.GetNumberOfSides(); | 5467 | return part.GetNumberOfSides(); |
5468 | |||
5469 | if (part.GetPrimType() == PrimType.SPHERE && part.Shape.ProfileHollow > 0) | ||
5470 | { | ||
5471 | // Make up for a bug where LSL shows 4 sides rather than 2 | ||
5472 | sides += 2; | ||
5473 | } | ||
5474 | |||
5475 | return sides; | ||
5476 | } | 5468 | } |
5477 | 5469 | ||
5478 | 5470 | ||