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.

0.9.0.1-postfixes
mewtwo0641 2018-03-03 22:35:27 -06:00 committed by Melanie Thielker
parent 846f35d365
commit f579fbba0e
1 changed files with 1 additions and 9 deletions

View File

@ -5464,15 +5464,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
protected int GetNumberOfSides(SceneObjectPart part)
{
int sides = part.GetNumberOfSides();
if (part.GetPrimType() == PrimType.SPHERE && part.Shape.ProfileHollow > 0)
{
// Make up for a bug where LSL shows 4 sides rather than 2
sides += 2;
}
return sides;
return part.GetNumberOfSides();
}