Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when first layer is empty #6817

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

Noisyfox
Copy link
Collaborator

Fix #6807

All places that use current_extruder_id will first do a if(current_extruder_id) check, which will only be false if this optional is not set. But when it's initialized with -1 all the checks will become useless which causes this crash.

Copy link
Owner

@SoftFever SoftFever left a comment

Choose a reason for hiding this comment

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

Nice fix!
Thank you

@SoftFever SoftFever merged commit ad6ea3f into SoftFever:main Sep 18, 2024
15 checks passed
@Noisyfox Noisyfox deleted the bugfox/empty-1st-crash branch September 18, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repeatable CRASH on slice
2 participants