diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index c6721491f..e7b0fa775 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,7 @@ - Fixed entity preview size in left panel - Fixed IntGrid icons size when the left panel uses the 5-columns mode + - Rules remapping now also updates out-of-bounds policy value # 1.4.1 diff --git a/src/electron.renderer/ui/modal/dialog/RuleGroupRemap.hx b/src/electron.renderer/ui/modal/dialog/RuleGroupRemap.hx index a35578d65..41a927418 100644 --- a/src/electron.renderer/ui/modal/dialog/RuleGroupRemap.hx +++ b/src/electron.renderer/ui/modal/dialog/RuleGroupRemap.hx @@ -89,6 +89,11 @@ class RuleGroupRemap extends ui.modal.Dialog { r.set(cx,cy, -idRemaps.get(-v)); } + // Out-of-bounds value + for(r in copy.rules) + if( r.outOfBoundsValue!=null && idRemaps.exists(r.outOfBoundsValue) ) + r.outOfBoundsValue = idRemaps.get(r.outOfBoundsValue); + onConfirm(copy); close(); }