BulletSim: encorporate UBit's suggestion to save a copy of mesh raw data.
parent
a61f20ac74
commit
c245178eee
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue