Skip to content

Commit

Permalink
Make a note about the next step
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Feb 7, 2025
1 parent 427cd9f commit dc1a1e2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/librt/primitives/edgeneric.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ rt_solid_edit_generic_strans_xy(vect_t *pos_view,
(*OBJ[ip->idb_type].ft_mat)(ip, mat, ip);
}

// TODO - with the merge of edit_flag and edit_menu, this function
// doesn't really work - edit_flag won't hold RT_SOLID_EDIT_PSCALE
// but a more specific flag. Need to make per-prim edit_xy routines
// to do this instead.
int
rt_solid_edit_generic_edit_xy(
struct rt_solid_edit *s,
Expand All @@ -319,8 +323,6 @@ rt_solid_edit_generic_edit_xy(
case RT_SOLID_EDIT_SCALE:
case RT_SOLID_EDIT_PSCALE:
rt_solid_edit_generic_sscale_xy(s, mousevec);
if (EDOBJ[ip->idb_type].ft_edit)
return (*EDOBJ[ip->idb_type].ft_edit)(s);
return 0;
case RT_SOLID_EDIT_TRANS:
rt_solid_edit_generic_strans_xy(&pos_view, s, mousevec);
Expand All @@ -335,9 +337,6 @@ rt_solid_edit_generic_edit_xy(

rt_update_edit_absolute_tran(s, pos_view);

if (EDOBJ[ip->idb_type].ft_edit)
return (*EDOBJ[ip->idb_type].ft_edit)(s);

return 0;
}

Expand Down

0 comments on commit dc1a1e2

Please sign in to comment.