diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | 15 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/UuidGatherer.cs | 2 |
2 files changed, 5 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index 00e4e78..9f34d7f 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -362,24 +362,15 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
362 | { | 362 | { |
363 | bitmap = new Bitmap(width, height, PixelFormat.Format32bppRgb); | 363 | bitmap = new Bitmap(width, height, PixelFormat.Format32bppRgb); |
364 | graph = Graphics.FromImage(bitmap); | 364 | graph = Graphics.FromImage(bitmap); |
365 | using (SolidBrush bgFillBrush = new SolidBrush(bgColor)) | 365 | graph.Clear(bgColor); |
366 | { | ||
367 | graph.FillRectangle(bgFillBrush, 0, 0, width, height); | ||
368 | } | ||
369 | } | 366 | } |
370 | else | 367 | else |
371 | { | 368 | { |
369 | Color newbg = Color.FromArgb(alpha, bgColor); | ||
372 | bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); | 370 | bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); |
373 | graph = Graphics.FromImage(bitmap); | 371 | graph = Graphics.FromImage(bitmap); |
374 | 372 | graph.Clear(newbg); | |
375 | Color newbg = Color.FromArgb(alpha,bgColor); | ||
376 | using (SolidBrush bgFillBrush = new SolidBrush(newbg)) | ||
377 | { | ||
378 | graph.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceCopy; | ||
379 | graph.FillRectangle(bgFillBrush, 0, 0, width, height); | ||
380 | } | ||
381 | } | 373 | } |
382 | graph.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceOver; | ||
383 | GDIDraw(data, graph, altDataDelim, out reuseable); | 374 | GDIDraw(data, graph, altDataDelim, out reuseable); |
384 | } | 375 | } |
385 | 376 | ||
diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs index 80d3f62..d0c48b7 100644 --- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs +++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs | |||
@@ -450,6 +450,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
450 | { | 450 | { |
451 | // scan thru the dynAttrs map of this part for any textures used as materials | 451 | // scan thru the dynAttrs map of this part for any textures used as materials |
452 | OSD osdMaterials = null; | 452 | OSD osdMaterials = null; |
453 | if(part.DynAttrs == null) | ||
454 | return; | ||
453 | 455 | ||
454 | lock (part.DynAttrs) | 456 | lock (part.DynAttrs) |
455 | { | 457 | { |