a few changes to last commits

0.9.1.0-post-fixes
UbitUmarov 2019-01-30 00:12:46 +00:00
parent 5fc44398fe
commit eb7715e2f8
1 changed files with 15 additions and 9 deletions

View File

@ -504,10 +504,24 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
foreach (string line in GetLines(data, dataDelim))
{
string nextLine = line.Trim();
string nextLine = line.TrimStart();
// m_log.DebugFormat("[VECTOR RENDER MODULE]: Processing line '{0}'", nextLine);
if (nextLine.StartsWith("Text") && nextLine.Length > 5)
{
int start = 4;
if (nextLine[4] == ' ')
start++;
if (start < nextLine.Length)
{
nextLine = nextLine.Substring(start);
graph.DrawString(nextLine, myFont, myBrush, startPoint);
}
continue;
}
nextLine = nextLine.TrimEnd();
if (nextLine.StartsWith("ResetTransf"))
{
graph.ResetTransform();
@ -552,14 +566,6 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
startPoint.X = endPoint.X;
startPoint.Y = endPoint.Y;
}
else if (nextLine.StartsWith("Text"))
{
int start = 4;
if(nextLine[4] == ' ')
start++;
nextLine = nextLine.Substring(start);
graph.DrawString(nextLine, myFont, myBrush, startPoint);
}
else if (nextLine.StartsWith("Image"))
{
// We cannot reuse any generated texture involving fetching an image via HTTP since that image