Skip to content

Commit

Permalink
Rules remapping now also updates out-of-bounds policy value
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Sep 26, 2023
1 parent b7ef225 commit e5530b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/electron.renderer/ui/modal/dialog/RuleGroupRemap.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e5530b5

Please # to comment.