diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs | 18 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/EMailModules/EmailModule.cs | 2 |
2 files changed, 9 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs index d6f0713..a8f841b 100644 --- a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs | |||
@@ -231,21 +231,21 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture | |||
231 | 231 | ||
232 | // Create a new asset for user | 232 | // Create a new asset for user |
233 | AssetBase asset = new AssetBase(); | 233 | AssetBase asset = new AssetBase(); |
234 | asset.Metadata.FullID = UUID.Random(); | 234 | asset.FullID = UUID.Random(); |
235 | asset.Data = assetData; | 235 | asset.Data = assetData; |
236 | asset.Metadata.Name = "DynamicImage" + Util.RandomClass.Next(1, 10000); | 236 | asset.Name = "DynamicImage" + Util.RandomClass.Next(1, 10000); |
237 | asset.Metadata.Type = 0; | 237 | asset.Type = 0; |
238 | asset.Metadata.Description = "dynamic image"; | 238 | asset.Description = "dynamic image"; |
239 | asset.Metadata.Local = false; | 239 | asset.Local = false; |
240 | asset.Metadata.Temporary = true; | 240 | asset.Temporary = true; |
241 | scene.CommsManager.AssetCache.AddAsset(asset); | 241 | scene.CommsManager.AssetCache.AddAsset(asset); |
242 | 242 | ||
243 | LastAssetID = asset.Metadata.FullID; | 243 | LastAssetID = asset.FullID; |
244 | 244 | ||
245 | IJ2KDecoder cacheLayerDecode = scene.RequestModuleInterface<IJ2KDecoder>(); | 245 | IJ2KDecoder cacheLayerDecode = scene.RequestModuleInterface<IJ2KDecoder>(); |
246 | if (cacheLayerDecode != null) | 246 | if (cacheLayerDecode != null) |
247 | { | 247 | { |
248 | cacheLayerDecode.syncdecode(asset.Metadata.FullID, asset.Data); | 248 | cacheLayerDecode.syncdecode(asset.FullID, asset.Data); |
249 | } | 249 | } |
250 | cacheLayerDecode = null; | 250 | cacheLayerDecode = null; |
251 | 251 | ||
@@ -256,7 +256,7 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture | |||
256 | UUID oldID = tmptex.DefaultTexture.TextureID; | 256 | UUID oldID = tmptex.DefaultTexture.TextureID; |
257 | scene.CommsManager.AssetCache.ExpireAsset(oldID); | 257 | scene.CommsManager.AssetCache.ExpireAsset(oldID); |
258 | 258 | ||
259 | tmptex.DefaultTexture.TextureID = asset.Metadata.FullID; | 259 | tmptex.DefaultTexture.TextureID = asset.FullID; |
260 | // I'm pretty sure we always want to force this to true | 260 | // I'm pretty sure we always want to force this to true |
261 | tmptex.DefaultTexture.Fullbright = true; | 261 | tmptex.DefaultTexture.Fullbright = true; |
262 | 262 | ||
diff --git a/OpenSim/Region/CoreModules/Scripting/EMailModules/EmailModule.cs b/OpenSim/Region/CoreModules/Scripting/EMailModules/EmailModule.cs index 43eccf3..f788433 100644 --- a/OpenSim/Region/CoreModules/Scripting/EMailModules/EmailModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/EMailModules/EmailModule.cs | |||
@@ -326,8 +326,6 @@ namespace OpenSim.Region.CoreModules.Scripting.EmailModules | |||
326 | 326 | ||
327 | UUID toID = new UUID(address.Substring(0, address.IndexOf("@"))); | 327 | UUID toID = new UUID(address.Substring(0, address.IndexOf("@"))); |
328 | 328 | ||
329 | String unused; | ||
330 | |||
331 | if (IsLocal(toID)) // TODO FIX check to see if it is local | 329 | if (IsLocal(toID)) // TODO FIX check to see if it is local |
332 | { | 330 | { |
333 | // object in this region | 331 | // object in this region |