YEngine: fix wrong language detection on some comments in first line

0.9.1.1
UbitUmarov 2019-11-04 17:22:42 +00:00
parent bae7b21e87
commit 21f86c453d
1 changed files with 7 additions and 5 deletions

View File

@ -1231,15 +1231,17 @@ namespace OpenSim.Region.ScriptEngine.Yengine
// Requested engine not defined, warn on console. // Requested engine not defined, warn on console.
// Then we try to handle it if we're the default engine, else we ignore it. // Then we try to handle it if we're the default engine, else we ignore it.
// m_log.Warn("[YEngine]: " + itemID.ToString() + " requests undefined/disabled engine " + engineName); //m_log.Warn("[YEngine]: " + itemID.ToString() + " requests undefined/disabled engine " + engineName);
// m_log.Info("[YEngine]: - " + part.GetWorldPosition()); //m_log.Info("[YEngine]: - " + part.GetWorldPosition());
// m_log.Info("[YEngine]: first line: " + firstline); //m_log.Info("[YEngine]: first line: " + firstline);
if(defEngine != ScriptEngineName) if(defEngine != ScriptEngineName)
{ {
// m_log.Info("[YEngine]: leaving it to the default script engine (" + defEngine + ") to process it"); //m_log.Info("[YEngine]: leaving it to the default script engine (" + defEngine + ") to process it");
return; return;
} }
// m_log.Info("[YEngine]: will attempt to processing it anyway as default script engine"); // m_log.Info("[YEngine]: will attempt to processing it anyway as default script engine");
langsrt = "";
} }
if(!string.IsNullOrEmpty(langsrt) && langsrt !="lsl") if(!string.IsNullOrEmpty(langsrt) && langsrt !="lsl")