aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-05-09 01:28:54 +0000
committerTeravus Ovares2008-05-09 01:28:54 +0000
commit7e275bfa371883778c3481ddd206ea627fb54cf9 (patch)
treea2786130896d7c1293921e28853c348702e5c554 /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
parent* remove 2 warnings. (diff)
downloadopensim-SC_OLD-7e275bfa371883778c3481ddd206ea627fb54cf9.zip
opensim-SC_OLD-7e275bfa371883778c3481ddd206ea627fb54cf9.tar.gz
opensim-SC_OLD-7e275bfa371883778c3481ddd206ea627fb54cf9.tar.bz2
opensim-SC_OLD-7e275bfa371883778c3481ddd206ea627fb54cf9.tar.xz
* 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.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs21
1 files changed, 20 insertions, 1 deletions
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
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.ReadInUpdateExtraParam(type, inUse, data); 1923 m_shape.ReadInUpdateExtraParam(type, inUse, data);
1924 1924 if (type == 0x30)
1925 {
1926 if (m_shape.SculptEntry && m_shape.SculptTexture != LLUUID.Zero)
1927 {
1928 //AssetBase tx = m_parentGroup.Scene.getase
1929 m_parentGroup.Scene.AssetCache.GetAsset(m_shape.SculptTexture, SculptTextureCallback, true);
1930 }
1931 }
1925 ScheduleFullUpdate(); 1932 ScheduleFullUpdate();
1933
1934 }
1935 public void SculptTextureCallback(LLUUID textureID, AssetBase texture)
1936 {
1937 if (m_shape.SculptEntry)
1938 {
1939 if (texture != null)
1940 {
1941 m_shape.SculptData = texture.Data;
1942 }
1943 }
1944
1926 } 1945 }
1927 1946
1928 #endregion 1947 #endregion