diff options
author | Robert Adams | 2012-10-21 16:13:22 -0700 |
---|---|---|
committer | Robert Adams | 2012-10-22 22:24:37 -0700 |
commit | c245178eeee530e2be90ef9395ee885e0a79b7df (patch) | |
tree | b4331be9fa1d2ee3a725fafa3a31a1e553e78e52 /OpenSim/Region/Physics | |
parent | BulletSim: Create LinkSet abstract class and sparate constraint based linkset... (diff) | |
download | opensim-SC_OLD-c245178eeee530e2be90ef9395ee885e0a79b7df.zip opensim-SC_OLD-c245178eeee530e2be90ef9395ee885e0a79b7df.tar.gz opensim-SC_OLD-c245178eeee530e2be90ef9395ee885e0a79b7df.tar.bz2 opensim-SC_OLD-c245178eeee530e2be90ef9395ee885e0a79b7df.tar.xz |
BulletSim: encorporate UBit's suggestion to save a copy of mesh raw data.
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs b/OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs index d3ba273..7b808eb 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs | |||
@@ -724,8 +724,7 @@ public class BSShapeCollection : IDisposable | |||
724 | if (yprim.BaseShape.SculptTexture.ToString() != asset.ID) | 724 | if (yprim.BaseShape.SculptTexture.ToString() != asset.ID) |
725 | return; | 725 | return; |
726 | 726 | ||
727 | yprim.BaseShape.SculptData = new byte[asset.Data.Length]; | 727 | yprim.BaseShape.SculptData = asset.Data; |
728 | asset.Data.CopyTo(yprim.BaseShape.SculptData, 0); | ||
729 | // This will cause the prim to see that the filler shape is not the right | 728 | // This will cause the prim to see that the filler shape is not the right |
730 | // one and try again to build the object. | 729 | // one and try again to build the object. |
731 | yprim.ForceBodyShapeRebuild(false); | 730 | yprim.ForceBodyShapeRebuild(false); |