diff options
author | UbitUmarov | 2015-08-27 19:20:41 +0100 |
---|---|---|
committer | UbitUmarov | 2015-08-27 19:20:41 +0100 |
commit | d1b4e0dd6a2f5df161508e7fa12589cb054c70ae (patch) | |
tree | b6476a862efd18d6f743f2b6ed4d68ae9cb0c6d9 /OpenSim/Region/CoreModules | |
parent | rename revert map as baked map, bc thats what it is (diff) | |
download | opensim-SC-d1b4e0dd6a2f5df161508e7fa12589cb054c70ae.zip opensim-SC-d1b4e0dd6a2f5df161508e7fa12589cb054c70ae.tar.gz opensim-SC-d1b4e0dd6a2f5df161508e7fa12589cb054c70ae.tar.bz2 opensim-SC-d1b4e0dd6a2f5df161508e7fa12589cb054c70ae.tar.xz |
fix terrain bake for revert. just good enought fix
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | 14 |
1 files changed, 3 insertions, 11 deletions
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 | |||
651 | 651 | ||
652 | /// <summary> | 652 | /// <summary> |
653 | /// Saves the current state of the region into the baked map buffer. | 653 | /// Saves the current state of the region into the baked map buffer. |
654 | |||
654 | /// </summary> | 655 | /// </summary> |
655 | public void UpdateBakedMap() | 656 | public void UpdateBakedMap() |
656 | { | 657 | { |
657 | /* | ||
658 | int x; | ||
659 | for (x = 0; x < m_channel.Width; x++) | ||
660 | { | ||
661 | int y; | ||
662 | for (y = 0; y < m_channel.Height; y++) | ||
663 | { | ||
664 | m_baked[x, y] = m_channel[x, y]; | ||
665 | } | ||
666 | } | ||
667 | */ | ||
668 | m_baked = m_channel.MakeCopy(); | 658 | m_baked = m_channel.MakeCopy(); |
659 | m_painteffects[StandardTerrainEffects.Revert] = new RevertSphere(m_baked); | ||
660 | m_floodeffects[StandardTerrainEffects.Revert] = new RevertArea(m_baked); | ||
669 | } | 661 | } |
670 | 662 | ||
671 | /// <summary> | 663 | /// <summary> |