fix terrain bake for revert. just good enought fix

avinationmerge
UbitUmarov 2015-08-27 19:20:41 +01:00
parent 030c866b34
commit d1b4e0dd6a
1 changed files with 3 additions and 11 deletions

View File

@ -651,21 +651,13 @@ namespace OpenSim.Region.CoreModules.World.Terrain
/// <summary> /// <summary>
/// Saves the current state of the region into the baked map buffer. /// Saves the current state of the region into the baked map buffer.
/// </summary> /// </summary>
public void UpdateBakedMap() 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_baked = m_channel.MakeCopy();
m_painteffects[StandardTerrainEffects.Revert] = new RevertSphere(m_baked);
m_floodeffects[StandardTerrainEffects.Revert] = new RevertArea(m_baked);
} }
/// <summary> /// <summary>