Fix shape parameters sent for meshes tosupport the full number of faces

0.7.4-extended
Melanie 2013-02-16 05:09:27 +01:00 committed by Justin Clark-Casey (justincc)
parent f80ce30f4b
commit 74c8cf0406
1 changed files with 8 additions and 0 deletions

View File

@ -3773,6 +3773,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
part.Shape.LightEntry = false; part.Shape.LightEntry = false;
} }
} }
if (part.Shape != null && (part.Shape.SculptType == (byte)SculptType.Mesh))
{
// Ensure that mesh has at least 8 valid faces
part.Shape.ProfileBegin = 12500;
part.Shape.ProfileEnd = 0;
part.Shape.ProfileHollow = 27500;
}
} }
#region UpdateFlags to packet type conversion #region UpdateFlags to packet type conversion