From 92c03978e19ef3423ad71bc4668071340a8b27a9 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 8 May 2008 04:58:44 +0000 Subject: * 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. --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') 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 public void UpdateExtraParam(ushort type, bool inUse, byte[] data) { - m_shape.ExtraParams = new byte[data.Length + 7]; - int i = 0; - uint length = (uint) data.Length; - m_shape.ExtraParams[i++] = 1; - m_shape.ExtraParams[i++] = (byte) (type%256); - m_shape.ExtraParams[i++] = (byte) ((type >> 8)%256); - - m_shape.ExtraParams[i++] = (byte) (length%256); - m_shape.ExtraParams[i++] = (byte) ((length >> 8)%256); - m_shape.ExtraParams[i++] = (byte) ((length >> 16)%256); - m_shape.ExtraParams[i++] = (byte) ((length >> 24)%256); - Array.Copy(data, 0, m_shape.ExtraParams, i, data.Length); + m_shape.ReadInUpdateExtraParam(type, inUse, data); ScheduleFullUpdate(); } -- cgit v1.1