diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index 4c87c8a..a40b5ee 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | |||
@@ -286,6 +286,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
286 | } | 286 | } |
287 | } | 287 | } |
288 | 288 | ||
289 | if (Script == String.Empty) | ||
290 | { | ||
291 | if (File.Exists(OutFile)) | ||
292 | |||
293 | { | ||
294 | m_scriptEngine.Log.DebugFormat("[Compiler] Returning existing assembly for {0}", asset); | ||
295 | return OutFile; | ||
296 | } | ||
297 | |||
298 | throw new Exception("Cannot find script assembly and no script text present"); | ||
299 | } | ||
300 | |||
289 | enumCompileType l = DefaultCompileLanguage; | 301 | enumCompileType l = DefaultCompileLanguage; |
290 | 302 | ||
291 | if (Script.StartsWith("//c#", true, CultureInfo.InvariantCulture)) | 303 | if (Script.StartsWith("//c#", true, CultureInfo.InvariantCulture)) |