Skip to content

Commit

Permalink
Remove 2d image scale input in move tool
Browse files Browse the repository at this point in the history
This was broken.
  • Loading branch information
guillaumechereau committed Jul 4, 2024
1 parent f6dbdda commit a732f4d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/tools/move.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ static void center_origin(layer_t *layer)
vec3_copy(pos, layer->mat[3]);
}


static int gui(tool_t *tool)
{
layer_t *layer;
float mat[4][4] = MAT4_IDENTITY, v;
int i;
float mat[4][4] = MAT4_IDENTITY;
int x, y, z;
float origin[3];
bool only_origin = false;
Expand Down Expand Up @@ -179,11 +179,6 @@ static int gui(tool_t *tool)

gui_group_end();

if (layer->image && gui_input_int(_(SCALE), &i, 0, 0)) {
v = pow(2, i);
mat4_iscale(mat, v, v, v);
}

gui_group_begin(_(FLIP));
gui_row_begin(3);
if (gui_button("X", -1, 0)) mat4_iscale(mat, -1, 1, 1);
Expand Down

0 comments on commit a732f4d

Please sign in to comment.