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) if (yprim.BaseShape.SculptTexture.ToString() != asset.ID)
return; return;
yprim.BaseShape.SculptData = new byte[asset.Data.Length]; yprim.BaseShape.SculptData = asset.Data;
asset.Data.CopyTo(yprim.BaseShape.SculptData, 0);
// This will cause the prim to see that the filler shape is not the right // This will cause the prim to see that the filler shape is not the right
// one and try again to build the object. // one and try again to build the object.
yprim.ForceBodyShapeRebuild(false); yprim.ForceBodyShapeRebuild(false);