Skip to content

Commit

Permalink
Better cutouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Azmoria committed Jul 1, 2024
1 parent 4ca012b commit cc07cc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Fog.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,12 +1475,12 @@ function redraw_elev(openLegened = false) {
drawCircle(targetCtx,x, y, radius, color, isFilled, lineWidth);
}
if (shape == "polygon") {
clearPolygon(targetCtx, x, scale);
clearPolygon(targetCtx, x, scale,true);
drawPolygon(targetCtx, x, color, isFilled, lineWidth, undefined, undefined, scale);
// ctx.stroke();
}
if(shape == "3pointRect"){
clear3PointRect(targetCtx, x, scale);
clear3PointRect(targetCtx, x, scale,true);
draw3PointRect(targetCtx, x, color, isFilled, lineWidth, undefined, undefined, scale);
}

Expand Down Expand Up @@ -3435,7 +3435,7 @@ function handle_drawing_button_click() {

stop_drawing();
if(window.CURRENT_SCENE_DATA != undefined){
if($(clicked).is("#wall_button")){
if($(clicked).is("#wall_button") || $("#wall_button").hasClass('ddbc-tab-options__header-heading--is-active')){
redraw_light_walls();
}
else{
Expand All @@ -3449,7 +3449,7 @@ function handle_drawing_button_click() {
$('#walls_layer').css('display', 'none');
}
}
if($(clicked).is("#elev_button")){
if($(clicked).is("#elev_button") || $("#elev_button").hasClass('ddbc-tab-options__header-heading--is-active')){
redraw_elev(true);
}
else{
Expand Down

0 comments on commit cc07cc1

Please sign in to comment.