aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorRobert Adams2012-10-21 16:13:22 -0700
committerRobert Adams2012-10-22 22:24:37 -0700
commitc245178eeee530e2be90ef9395ee885e0a79b7df (patch)
treeb4331be9fa1d2ee3a725fafa3a31a1e553e78e52 /OpenSim/Region
parentBulletSim: Create LinkSet abstract class and sparate constraint based linkset... (diff)
downloadopensim-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 'OpenSim/Region')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs3
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);