Skip to content

Commit

Permalink
Fix to ISSUE#4100
Browse files Browse the repository at this point in the history
  • Loading branch information
Kkrafy committed May 30, 2023
1 parent be6d678 commit ff3eaff
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,14 @@ private void handle(SetZoneVisibilityMsg msg) {

var zone = MapTool.getCampaign().getZone(zoneGUID);
zone.setVisible(visible);

ZoneRenderer currentRenderer = MapTool.getFrame().getCurrentZoneRenderer();
List<MacroButtonProperties> AllMacroButtons = new ArrayList<>();
Collection<GUID> AllTokenIDs = new ArrayList<>();
for (Token token : renderer.getZone().getAllTokens()) {
AllTokenIDs.add(token.getId());
}
renderer.getSelectionModel().removeTokensFromSelection(AllTokenIDs);
MapTool.getFrame().setCurrentZoneRenderer(null);
if (!visible
&& !MapTool.getPlayer().isGM()
&& currentRenderer != null
Expand Down

0 comments on commit ff3eaff

Please sign in to comment.