mantis 7896 and 7910: fix lsl setting of flexi and impact on prim type

This commit is contained in:
UbitUmarov
2021-11-30 16:29:04 +00:00
parent 9f88613f7e
commit 249f0fc4c2
4 changed files with 50 additions and 31 deletions

View File

@@ -4026,7 +4026,7 @@ namespace OpenSim.Region.Framework.Scenes
ProfileShape ps = (ProfileShape)(Shape.ProfileCurve & 0x07);
if (ps == ProfileShape.Square)
{
if (Shape.PathCurve == (byte)Extrusion.Straight)
if (Shape.PathCurve == (byte)Extrusion.Straight || Shape.PathCurve == (byte)Extrusion.Flexible)
return PrimType.BOX;
else if (Shape.PathCurve == (byte)Extrusion.Curve1)
return PrimType.TUBE;