Skip to content

Commit

Permalink
Merge pull request #1519 from Azmoria/Fix---make-sure-walls-are-drawn…
Browse files Browse the repository at this point in the history
…-before-bucket-fill-drawings-

Fix - make sure walls are drawn before bucket fill drawings.
  • Loading branch information
Azmoria authored Sep 17, 2023
2 parents ef2ef89 + b74acb3 commit 4e0f505
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Fog.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,8 +898,8 @@ function reset_canvas() {
delete window.lightAuraClipPolygon;
delete window.lineOfSightPolygons;

redraw_drawings();
redraw_light_walls();
redraw_drawings();
redraw_drawn_light();
redraw_light();
redraw_fog();
Expand Down
4 changes: 2 additions & 2 deletions MessageBroker.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,20 +547,20 @@ class MessageBroker {

if (msg.eventType == "custom/myVTT/drawing") {
window.DRAWINGS.push(msg.data);
redraw_light_walls();
redraw_drawn_light();
redraw_drawings();
redraw_text();
redraw_light_walls();
await redraw_light();
check_token_visibility();
}

if(msg.eventType=="custom/myVTT/drawdata"){
window.DRAWINGS=msg.data;
redraw_light_walls();
redraw_drawn_light();
redraw_drawings();
redraw_text();
redraw_light_walls();
await redraw_light();
check_token_visibility();
}
Expand Down

0 comments on commit 4e0f505

Please sign in to comment.