From d1b4e0dd6a2f5df161508e7fa12589cb054c70ae Mon Sep 17 00:00:00 2001
From: UbitUmarov
Date: Thu, 27 Aug 2015 19:20:41 +0100
Subject: fix terrain bake for revert. just good enought fix
---
OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
(limited to 'OpenSim')
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
index 45a5784..feafa48 100644
--- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
@@ -651,21 +651,13 @@ namespace OpenSim.Region.CoreModules.World.Terrain
///
/// Saves the current state of the region into the baked map buffer.
+
///
public void UpdateBakedMap()
{
- /*
- int x;
- for (x = 0; x < m_channel.Width; x++)
- {
- int y;
- for (y = 0; y < m_channel.Height; y++)
- {
- m_baked[x, y] = m_channel[x, y];
- }
- }
- */
m_baked = m_channel.MakeCopy();
+ m_painteffects[StandardTerrainEffects.Revert] = new RevertSphere(m_baked);
+ m_floodeffects[StandardTerrainEffects.Revert] = new RevertArea(m_baked);
}
///
--
cgit v1.1