mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Merge branch 'master' into careminster
Conflicts: OpenSim/Data/MySQL/MySQLSimulationData.cs OpenSim/Data/MySQL/Resources/RegionStore.migrations
This commit is contained in:
@@ -622,6 +622,8 @@ namespace OpenSim.Framework
|
||||
}
|
||||
}
|
||||
|
||||
// This is only used at runtime. For sculpties this holds the texture data, and for meshes
|
||||
// the mesh data.
|
||||
public byte[] SculptData
|
||||
{
|
||||
get
|
||||
@@ -1175,14 +1177,13 @@ namespace OpenSim.Framework
|
||||
|
||||
public void ReadSculptData(byte[] data, int pos)
|
||||
{
|
||||
byte[] SculptTextureUUID = new byte[16];
|
||||
UUID SculptUUID = UUID.Zero;
|
||||
byte SculptTypel = data[16+pos];
|
||||
UUID SculptUUID;
|
||||
byte SculptTypel;
|
||||
|
||||
if (data.Length+pos >= 17)
|
||||
if (data.Length-pos >= 17)
|
||||
{
|
||||
_sculptEntry = true;
|
||||
SculptTextureUUID = new byte[16];
|
||||
byte[] SculptTextureUUID = new byte[16];
|
||||
SculptTypel = data[16 + pos];
|
||||
Array.Copy(data, pos, SculptTextureUUID,0, 16);
|
||||
SculptUUID = new UUID(SculptTextureUUID, 0);
|
||||
|
||||
Reference in New Issue
Block a user