* 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.
This commit is contained in:
Teravus Ovares
2008-05-09 01:28:54 +00:00
parent 646df0dc2c
commit 7e275bfa37
4 changed files with 254 additions and 2 deletions

View File

@@ -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