diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs index 674b451..cf95463 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs | |||
@@ -287,14 +287,14 @@ namespace OpenSim.Region.ClientStack.Linden | |||
287 | 287 | ||
288 | public void RegisterCaps(UUID agentID, Caps caps) | 288 | public void RegisterCaps(UUID agentID, Caps caps) |
289 | { | 289 | { |
290 | UploadBakedTextureHandler avatarhandler = new UploadBakedTextureHandler( | ||
291 | caps, m_scene.AssetService, m_persistBakedTextures); | ||
292 | |||
293 | UUID capID = UUID.Random(); | 290 | UUID capID = UUID.Random(); |
294 | 291 | ||
295 | //caps.RegisterHandler("GetTexture", new StreamHandler("GET", "/CAPS/" + capID, ProcessGetTexture)); | 292 | //caps.RegisterHandler("GetTexture", new StreamHandler("GET", "/CAPS/" + capID, ProcessGetTexture)); |
296 | if (m_URL == "localhost") | 293 | if (m_URL == "localhost") |
297 | { | 294 | { |
295 | UploadBakedTextureHandler avatarhandler = new UploadBakedTextureHandler( | ||
296 | caps, m_scene.AssetService, m_persistBakedTextures); | ||
297 | |||
298 | caps.RegisterHandler( | 298 | caps.RegisterHandler( |
299 | "UploadBakedTexture", | 299 | "UploadBakedTexture", |
300 | new RestStreamHandler( | 300 | new RestStreamHandler( |
@@ -309,7 +309,6 @@ namespace OpenSim.Region.ClientStack.Linden | |||
309 | { | 309 | { |
310 | caps.RegisterHandler("UploadBakedTexture", m_URL); | 310 | caps.RegisterHandler("UploadBakedTexture", m_URL); |
311 | } | 311 | } |
312 | |||
313 | } | 312 | } |
314 | } | 313 | } |
315 | } | 314 | } |