UbitOde stop doing a copy of the asset data using just the reference to

it. It costs a lot of cpu and doesn't seem all that usefull.
avinationmerge
UbitUmarov 2012-10-19 03:50:00 +01:00
parent 739782627a
commit b51c26ab40
1 changed files with 3 additions and 2 deletions

View File

@ -914,8 +914,9 @@ namespace OpenSim.Region.Physics.OdePlugin
if (repData.pbs.SculptTexture != repData.assetID)
return;
repData.pbs.SculptData = new byte[asset.Data.Length];
asset.Data.CopyTo(repData.pbs.SculptData,0);
// repData.pbs.SculptData = new byte[asset.Data.Length];
// asset.Data.CopyTo(repData.pbs.SculptData,0);
repData.pbs.SculptData = asset.Data;
repData.meshState = MeshState.AssetOK;
m_worker.AssetLoaded(repData);
}