diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index adcd646..22753de 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -1920,18 +1920,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1920 | 1920 | ||
1921 | public void UpdateExtraParam(ushort type, bool inUse, byte[] data) | 1921 | public void UpdateExtraParam(ushort type, bool inUse, byte[] data) |
1922 | { | 1922 | { |
1923 | m_shape.ExtraParams = new byte[data.Length + 7]; | 1923 | m_shape.ReadInUpdateExtraParam(type, inUse, data); |
1924 | int i = 0; | ||
1925 | uint length = (uint) data.Length; | ||
1926 | m_shape.ExtraParams[i++] = 1; | ||
1927 | m_shape.ExtraParams[i++] = (byte) (type%256); | ||
1928 | m_shape.ExtraParams[i++] = (byte) ((type >> 8)%256); | ||
1929 | |||
1930 | m_shape.ExtraParams[i++] = (byte) (length%256); | ||
1931 | m_shape.ExtraParams[i++] = (byte) ((length >> 8)%256); | ||
1932 | m_shape.ExtraParams[i++] = (byte) ((length >> 16)%256); | ||
1933 | m_shape.ExtraParams[i++] = (byte) ((length >> 24)%256); | ||
1934 | Array.Copy(data, 0, m_shape.ExtraParams, i, data.Length); | ||
1935 | 1924 | ||
1936 | ScheduleFullUpdate(); | 1925 | ScheduleFullUpdate(); |
1937 | } | 1926 | } |