diff options
author | mewtwo0641 | 2018-03-03 22:35:27 -0600 |
---|---|---|
committer | Melanie Thielker | 2018-03-04 13:26:19 +0000 |
commit | f579fbba0e38074cd4af78b09d885c9e18d75b1f (patch) | |
tree | 10b6a9522ce92293071e1dafce3f6672126dd888 /OpenSim/Region | |
parent | a few more changes on tortured prims number of sides/faces (diff) | |
download | opensim-SC-f579fbba0e38074cd4af78b09d885c9e18d75b1f.zip opensim-SC-f579fbba0e38074cd4af78b09d885c9e18d75b1f.tar.gz opensim-SC-f579fbba0e38074cd4af78b09d885c9e18d75b1f.tar.bz2 opensim-SC-f579fbba0e38074cd4af78b09d885c9e18d75b1f.tar.xz |
Remove the work around for sphere number of faces since as of commit 846f35 it initially has the correct number of faces and the workaround returns 2 more than the correct number of faces.
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 | ||