Skip to content

Commit

Permalink
Fix using surf after move
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjac committed Aug 22, 2023
1 parent 14742fa commit 7f4aa62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ void ViewportWindow::toolAdjust(POINT pos, SIZE delta, UINT keyFlags) {
moved = diff;
}
if (amount != glm::vec3(0)) {
g_state.surf = transformVertices(std::move(g_state.surf), selAttachedVerts(g_state),
auto verts = selAttachedVerts(g_state);
g_state.surf = transformVertices(std::move(g_state.surf), verts,
glm::translate(glm::mat4(1), amount));
g_mainWindow.updateStatus();
}
Expand Down

0 comments on commit 7f4aa62

Please sign in to comment.