// Sector height change public virtual void OnChangeTargetHeight(int amount) { changed = true; ChangeHeight(amount); // Rebuild sector BaseVisualSector vs; if (mode.VisualSectorExists(level.sector)) { vs = (BaseVisualSector)mode.GetVisualSector(level.sector); } else { //mxd. Need this to apply changes to 3d-floor even if control sector doesn't exist as BaseVisualSector vs = mode.CreateBaseVisualSector(level.sector); } if (vs != null) { vs.UpdateSectorGeometry(true); } }
// Sector height change public virtual void OnChangeTargetHeight(int amount) { changed = true; ChangeHeight(amount); // Rebuild sector BaseVisualSector vs; if (mode.VisualSectorExists(level.sector)) { vs = (BaseVisualSector)mode.GetVisualSector(level.sector); } else { //mxd. Need this to apply changes to 3d-floor even if control sector doesn't exist as BaseVisualSector vs = mode.CreateBaseVisualSector(level.sector); } if (vs != null) { vs.UpdateSectorGeometry(true); } // Visual slope handles need to be updated, too if (General.Map.UDMF) { if (mode.AllSlopeHandles.ContainsKey(level.sector)) { foreach (VisualSidedefSlope handle in mode.AllSlopeHandles[level.sector]) { handle.Changed = true; } } } }