Skip to content

Commit

Permalink
Add 'paint' layer mode
Browse files Browse the repository at this point in the history
This can be useful to transfer color from some 2d image into the model.
  • Loading branch information
guillaumechereau committed Jul 10, 2024
1 parent a589b41 commit 3ef7e02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/layers_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ static const char *get_mode_name(int mode)
case MODE_OVER: return "Add";
case MODE_SUB: return "Subtract";
case MODE_INTERSECT: return "Intersect";
case MODE_PAINT: return "Paint";
default: return "";
}
}
Expand Down Expand Up @@ -89,7 +90,7 @@ void gui_layers_panel(void)
int icons_count, icons[8];
bool current, visible, bounded;
char buf[256];
const int MODES[] = {MODE_OVER, MODE_SUB, MODE_INTERSECT};
const int MODES[] = {MODE_OVER, MODE_SUB, MODE_INTERSECT, MODE_PAINT};

gui_group_begin(NULL);
DL_FOREACH_REVERSE(goxel.image->layers, layer) {
Expand Down

0 comments on commit 3ef7e02

Please sign in to comment.