Permalink
Browse files

Fix Tighten command

From 1f6fe12, wings_drag:fold() no longer acceps a list of
tuples of the form {Vector,[Vertex]}. wings_drag:translate_fun/2 must
be used to translate such a list to a translation fun.
  • Loading branch information...
1 parent dffc7c6 commit b9c0c9fc10d0460320dcc98ea0cd346f3402317a @bjorng committed Jan 16, 2017
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/wings_vertex_cmd.erl
@@ -474,7 +474,8 @@ tighten(St) ->
wings_drag:fold(fun tighten_vs/2, [percent], St).
tighten_vs(Vs, We) when is_list(Vs) ->
- [{tighten_vec(V, We),[V]} || V <- Vs];
+ Translate = [{tighten_vec(V, We),[V]} || V <- Vs],
+ wings_drag:translate_fun(Translate, We);
tighten_vs(Vs, We) ->
tighten_vs(gb_sets:to_list(Vs), We).

0 comments on commit b9c0c9f

Please sign in to comment.