From 05da6b9f1417b8ccef318b8d5e13be695e38f08d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 16 Sep 2017 00:19:58 +0100 Subject: bug fix. Increase the values of profileHollow and profileBegin used to match pbs number of faces and the Mesh number of faces. The small values i used before seem to be randomly lost. --- OpenSim/Framework/PrimitiveBaseShape.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index 96d78d3..98d1bdd 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs @@ -348,7 +348,7 @@ namespace OpenSim.Framework case 2: // torus with hollow (a sl viewer whould see 4 faces on a hollow sphere) shape.ProfileCurve = (byte)ProfileShape.Circle | (byte)HollowShape.Triangle; shape.PathCurve = (byte)Extrusion.Curve1; - shape.ProfileHollow = 1; + shape.ProfileHollow = 27500; break; case 3: // cylinder @@ -359,7 +359,7 @@ namespace OpenSim.Framework case 4: // cylinder with hollow shape.ProfileCurve = (byte)ProfileShape.Circle | (byte)HollowShape.Triangle; shape.PathCurve = (byte)Extrusion.Straight; - shape.ProfileHollow = 1; + shape.ProfileHollow = 27500; break; case 5: // prism @@ -375,13 +375,13 @@ namespace OpenSim.Framework case 7: // box with hollow shape.ProfileCurve = (byte)ProfileShape.Square | (byte)HollowShape.Triangle; shape.PathCurve = (byte)Extrusion.Straight; - shape.ProfileHollow = 1; + shape.ProfileHollow = 27500; break; default: // 8 faces box with cut shape.ProfileCurve = (byte)ProfileShape.Square | (byte)HollowShape.Triangle; shape.PathCurve = (byte)Extrusion.Straight; - shape.ProfileBegin = 1; + shape.ProfileBegin = 12500; break; } -- cgit v1.1