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.
parent
846f35d365
commit
f579fbba0e
|
@ -5464,15 +5464,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
protected int GetNumberOfSides(SceneObjectPart part)
|
protected int GetNumberOfSides(SceneObjectPart part)
|
||||||
{
|
{
|
||||||
int sides = part.GetNumberOfSides();
|
return 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue