mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
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.
This commit is contained in:
committed by
Melanie Thielker
parent
846f35d365
commit
f579fbba0e
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user