BulletSim: encorporate UBit's suggestion to save a copy of mesh raw data.

integration
Robert Adams 2012-10-21 16:13:22 -07:00
parent a61f20ac74
commit c245178eee
1 changed files with 1 additions and 2 deletions

View File

@ -724,8 +724,7 @@ public class BSShapeCollection : IDisposable
if (yprim.BaseShape.SculptTexture.ToString() != asset.ID)
return;
yprim.BaseShape.SculptData = new byte[asset.Data.Length];
asset.Data.CopyTo(yprim.BaseShape.SculptData, 0);
yprim.BaseShape.SculptData = asset.Data;
// This will cause the prim to see that the filler shape is not the right
// one and try again to build the object.
yprim.ForceBodyShapeRebuild(false);