From 25d6d99c6e34e985629ddd678c3e1b60c1d91715 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 21 Feb 2018 15:28:34 +0000 Subject: [PATCH] fix a old issue on some tortured prims number of sides, and so textures set --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 532263a658..d5019391de 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -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;