aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorOren Hurvitz2014-04-23 08:51:28 +0300
committerOren Hurvitz2014-04-23 14:42:40 +0100
commitb01e73cf27a8b209c0129b3a2f40bc2e3094a173 (patch)
tree9808ddf14efa05f4c68fa13eb7a7cb3d1ca204d5
parentHypergrid: don't send Local assets to other grids (diff)
downloadopensim-SC-b01e73cf27a8b209c0129b3a2f40bc2e3094a173.zip
opensim-SC-b01e73cf27a8b209c0129b3a2f40bc2e3094a173.tar.gz
opensim-SC-b01e73cf27a8b209c0129b3a2f40bc2e3094a173.tar.bz2
opensim-SC-b01e73cf27a8b209c0129b3a2f40bc2e3094a173.tar.xz
Dynamic textures shouldn't be saved in the assets service (only in the simulator cache)
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs
index 4bced54..28e53f7 100644
--- a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs
@@ -516,9 +516,9 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
516 asset.Description = String.Format("URL image : {0}", Url); 516 asset.Description = String.Format("URL image : {0}", Url);
517 if (asset.Description.Length > AssetBase.MAX_ASSET_DESC) 517 if (asset.Description.Length > AssetBase.MAX_ASSET_DESC)
518 asset.Description = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC); 518 asset.Description = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC);
519 asset.Local = false; 519 asset.Local = true; // dynamic images aren't saved in the assets server
520 asset.Temporary = ((Disp & DISP_TEMP) != 0); 520 asset.Temporary = ((Disp & DISP_TEMP) != 0);
521 scene.AssetService.Store(asset); 521 scene.AssetService.Store(asset); // this will only save the asset in the local asset cache
522 522
523 IJ2KDecoder cacheLayerDecode = scene.RequestModuleInterface<IJ2KDecoder>(); 523 IJ2KDecoder cacheLayerDecode = scene.RequestModuleInterface<IJ2KDecoder>();
524 if (cacheLayerDecode != null) 524 if (cacheLayerDecode != null)