diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs b/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs index 6f83948..6e38b3f 100644 --- a/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs | |||
@@ -72,7 +72,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL | |||
72 | return null; | 72 | return null; |
73 | } | 73 | } |
74 | 74 | ||
75 | public byte[] ConvertStream(Stream data, string extraParams) | 75 | public byte[] ConvertData(string bodyData, string extraParams) |
76 | { | 76 | { |
77 | return null; | 77 | return null; |
78 | } | 78 | } |
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index f988c0e..3a758c5 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -78,9 +78,9 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
78 | return null; | 78 | return null; |
79 | } | 79 | } |
80 | 80 | ||
81 | public byte[] ConvertStream(Stream data, string extraParams) | 81 | public byte[] ConvertData(string bodyData, string extraParams) |
82 | { | 82 | { |
83 | return null; | 83 | return Draw(bodyData, extraParams); |
84 | } | 84 | } |
85 | 85 | ||
86 | public bool AsyncConvertUrl(UUID id, string url, string extraParams) | 86 | public bool AsyncConvertUrl(UUID id, string url, string extraParams) |
@@ -90,7 +90,8 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
90 | 90 | ||
91 | public bool AsyncConvertData(UUID id, string bodyData, string extraParams) | 91 | public bool AsyncConvertData(UUID id, string bodyData, string extraParams) |
92 | { | 92 | { |
93 | Draw(bodyData, id, extraParams); | 93 | // XXX: This isn't actually being done asynchronously! |
94 | m_textureManager.ReturnData(id, ConvertData(bodyData, extraParams)); | ||
94 | return true; | 95 | return true; |
95 | } | 96 | } |
96 | 97 | ||
@@ -161,7 +162,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
161 | 162 | ||
162 | #endregion | 163 | #endregion |
163 | 164 | ||
164 | private void Draw(string data, UUID id, string extraParams) | 165 | private byte[] Draw(string data, string extraParams) |
165 | { | 166 | { |
166 | // We need to cater for old scripts that didnt use extraParams neatly, they use either an integer size which represents both width and height, or setalpha | 167 | // We need to cater for old scripts that didnt use extraParams neatly, they use either an integer size which represents both width and height, or setalpha |
167 | // we will now support multiple comma seperated params in the form width:256,height:512,alpha:255 | 168 | // we will now support multiple comma seperated params in the form width:256,height:512,alpha:255 |
@@ -358,7 +359,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
358 | e.Message, e.StackTrace); | 359 | e.Message, e.StackTrace); |
359 | } | 360 | } |
360 | 361 | ||
361 | m_textureManager.ReturnData(id, imageJ2000); | 362 | return imageJ2000; |
362 | } | 363 | } |
363 | finally | 364 | finally |
364 | { | 365 | { |