Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Machina/RobotCursor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ internal void UndoToolTransformOnCursor(RobotCursor cursor, Tool tool, RobotLogg
{
// TODO: at some point in the future, check for translationFirst here
Rotation newRot = Rotation.Combine(cursor.rotation, Rotation.Inverse(tool.TCPOrientation)); // postmultiplication by the inverse rotation
Vector worldVector = Vector.Rotation(tool.TCPPosition, cursor.rotation);
Vector worldVector = Vector.Rotation(tool.TCPPosition, newRot);
Vector newPos = cursor.position - worldVector;

cursor.prevPosition = cursor.position;
Expand Down