fix a old issue on some tortured prims number of sides, and so textures set

0.9.0.1-postfixes
UbitUmarov 2018-02-21 15:28:34 +00:00
parent d6a35d6d2f
commit 25d6d99c6e
1 changed files with 4 additions and 4 deletions

View File

@ -3930,25 +3930,25 @@ namespace OpenSim.Region.Framework.Scenes
break;
case PrimType.SPHERE:
ret = 1;
if (hasCut) ret += 2;
if (hasCut || Shape.PathSkew != 0) ret += 2;
if (hasDimple) ret += 2;
if (hasHollow) ret += 1;
break;
case PrimType.TORUS:
ret = 1;
if (hasCut) ret += 2;
if (hasCut || Shape.PathSkew != 0) ret += 2;
if (hasProfileCut) ret += 2;
if (hasHollow) ret += 1;
break;
case PrimType.TUBE:
ret = 4;
if (hasCut) ret += 2;
if (hasCut || Shape.PathSkew != 0) ret += 2;
if (hasProfileCut) ret += 2;
if (hasHollow) ret += 1;
break;
case PrimType.RING:
ret = 3;
if (hasCut) ret += 2;
if (hasCut || Shape.PathSkew != 0) ret += 2;
if (hasProfileCut) ret += 2;
if (hasHollow) ret += 1;
break;