aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/Graphics.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/Graphics.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/Graphics.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Graphics.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Graphics.cs
index 0b937c1..963cab5 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Graphics.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Graphics.cs
@@ -57,14 +57,14 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
57 asset.Description = "MRM Image"; 57 asset.Description = "MRM Image";
58 asset.Local = false; 58 asset.Local = false;
59 asset.Temporary = temporary; 59 asset.Temporary = temporary;
60 m_scene.CommsManager.AssetCache.AddAsset(asset); 60 m_scene.AssetService.Store(asset);
61 61
62 return asset.FullID; 62 return asset.FullID;
63 } 63 }
64 64
65 public Bitmap LoadBitmap(UUID assetID) 65 public Bitmap LoadBitmap(UUID assetID)
66 { 66 {
67 AssetBase bmp = m_scene.CommsManager.AssetCache.GetAsset(assetID, true); 67 AssetBase bmp = m_scene.AssetService.Get(assetID.ToString());
68 ManagedImage outimg; 68 ManagedImage outimg;
69 Image img; 69 Image img;
70 OpenJPEG.DecodeToImage(bmp.Data, out outimg, out img); 70 OpenJPEG.DecodeToImage(bmp.Data, out outimg, out img);