From 776c357265a56c0eb9672477832637f654defcac Mon Sep 17 00:00:00 2001 From: MaxED Date: Mon, 17 Jun 2013 09:42:49 +0000 Subject: [PATCH] Visual mode: fixed a freeze when sectors with sector effects were recursively updating each other. --- Source/Plugins/BuilderModes/VisualModes/SectorData.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Plugins/BuilderModes/VisualModes/SectorData.cs b/Source/Plugins/BuilderModes/VisualModes/SectorData.cs index 38b2791a..1ade6a87 100644 --- a/Source/Plugins/BuilderModes/VisualModes/SectorData.cs +++ b/Source/Plugins/BuilderModes/VisualModes/SectorData.cs @@ -182,6 +182,10 @@ namespace CodeImp.DoomBuilder.BuilderModes // Also reset the sectors that depend on this sector foreach(KeyValuePair s in updatesectors) { + //mxd + BaseVisualSector vs = (BaseVisualSector)mode.GetVisualSector(s.Key); + if(vs.Changed) continue; + SectorData sd = mode.GetSectorData(s.Key); sd.Reset(); }