mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Experimental decoded sculpt map caching
This commit is contained in:
@@ -2967,8 +2967,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if (part.Shape.SculptEntry && part.Shape.SculptTexture != UUID.Zero)
|
||||
{
|
||||
m_scene.AssetService.Get(
|
||||
part.Shape.SculptTexture.ToString(), part, AssetReceived);
|
||||
// check if a previously decoded sculpt map has been cached
|
||||
if (File.Exists(System.IO.Path.Combine("j2kDecodeCache", "smap_" + part.Shape.SculptTexture.ToString())))
|
||||
part.SculptTextureCallback(part.Shape.SculptTexture, null);
|
||||
else
|
||||
m_scene.AssetService.Get(
|
||||
part.Shape.SculptTexture.ToString(), part, AssetReceived);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user