Skip to content

Commit 34f3017

Browse files
committed
Add scale factor to tool loading in MachineViewer
1 parent bea8ebb commit 34f3017

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/machine_viewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ void MachineViewer::update_position(const std::array<double, 3>& xyz) {
330330
}
331331

332332
void MachineViewer::load_tool(double length, double diameter) {
333-
_impl->load_tool(length, diameter);
333+
_impl->load_tool(length * scale_factor, diameter * scale_factor);
334334
}
335335

336336
void MachineViewer::unload_tool() {

0 commit comments

Comments
 (0)