aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorTeravus Ovares2008-05-08 04:58:44 +0000
committerTeravus Ovares2008-05-08 04:58:44 +0000
commit92c03978e19ef3423ad71bc4668071340a8b27a9 (patch)
tree546e1f5cf0c07e2f9af84321ce0ecba4f990a108 /OpenSim/Region
parent* Reduced sleep durations in a number of files. (diff)
downloadopensim-SC_OLD-92c03978e19ef3423ad71bc4668071340a8b27a9.zip
opensim-SC_OLD-92c03978e19ef3423ad71bc4668071340a8b27a9.tar.gz
opensim-SC_OLD-92c03978e19ef3423ad71bc4668071340a8b27a9.tar.bz2
opensim-SC_OLD-92c03978e19ef3423ad71bc4668071340a8b27a9.tar.xz
* Fixes Prim ExtraParams
* Fixes Sculpty handling * Fixes Light handling * Fixes Flexi handling * Fixes Sculpty + Flexi handling * Fixes handling of Flexi type * Fixes Changing prim type after changing to sculpty corrupting prim. * Ugly code.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs13
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 }