Skip to content

Commit

Permalink
Only show wrap panel for visible layers
Browse files Browse the repository at this point in the history
  • Loading branch information
madd-games committed Mar 20, 2024
1 parent 870d94b commit 6c71620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/layers_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void gui_layers_panel(void)
if (bounded) {
gui_bbox(layer->box);

if (gui_wrap_box(&axis, &sign)) {
if (layer->visible && gui_wrap_box(&axis, &sign)) {
image_history_push(goxel.image);
layer_wrap(layer, axis, sign);
}
Expand Down

0 comments on commit 6c71620

Please sign in to comment.