Skip to content

Conversation

@pedrolamas
Copy link
Member

This issue was introduced with the changes from ce219df, where previously we were returning the approximate value from the binary search instead of the exact one as we were now, so this reverts back to the previous method.

Fix #1774

@pedrolamas pedrolamas added this to the 1.36.2 milestone Jan 2, 2026
@pedrolamas pedrolamas requested a review from Copilot January 2, 2026 22:38
@pedrolamas pedrolamas added the GH - Bug Something isn't working label Jan 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a regression in the GcodePreview feature where binary search was returning exact matches only instead of approximate positions. The fix restores the previous behavior by enabling the approximate search mode.

  • Adds true parameter to binarySearch call in getMoveIndexByFilePosition to enable approximate position matching

@pedrolamas pedrolamas merged commit 2781788 into fluidd-core:develop Jan 2, 2026
10 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-1774-2 branch January 2, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GH - Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GCode-Preview updating layers, but no head movement shown

1 participant