From 7e275bfa371883778c3481ddd206ea627fb54cf9 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 9 May 2008 01:28:54 +0000 Subject: * Wrote a method to get the OpenJpeg data of a sculpt texture asset and save it to the prim shape. * Added some stuff around sculpted prim meshes.. but it's just there so the project compiles now. --- .../Region/Environment/Scenes/SceneObjectPart.cs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (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 22753de..0075a22 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1921,8 +1921,27 @@ namespace OpenSim.Region.Environment.Scenes public void UpdateExtraParam(ushort type, bool inUse, byte[] data) { m_shape.ReadInUpdateExtraParam(type, inUse, data); - + if (type == 0x30) + { + if (m_shape.SculptEntry && m_shape.SculptTexture != LLUUID.Zero) + { + //AssetBase tx = m_parentGroup.Scene.getase + m_parentGroup.Scene.AssetCache.GetAsset(m_shape.SculptTexture, SculptTextureCallback, true); + } + } ScheduleFullUpdate(); + + } + public void SculptTextureCallback(LLUUID textureID, AssetBase texture) + { + if (m_shape.SculptEntry) + { + if (texture != null) + { + m_shape.SculptData = texture.Data; + } + } + } #endregion -- cgit v1.1