mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user