Skip to content

Conversation

@NOVAXIM
Copy link
Contributor

@NOVAXIM NOVAXIM commented Nov 25, 2025

Explanation

These changes are intended to calculate the correct number of layers when slicing a model before printing. This only works in specific scenario where the Initial Layer Height is different than the Layer Height. In addition to the correct calculation, we obtain the correct layers result on the slider.

Note

Most users don't notice the issue because Initial Bottom Layers is not shown by default (even in Expert settings) and even fewer users check these values.

Important

Please note that the calculation of the number of layers is always based on the layer thickness value.

Description of changes

Line 1739: The formula for calculating the number of Initial Bottom Layers shows the correct values finally.
Line 3766: the formula "* 30 / 60" is easier to write as "/ 2"
Line 7269: the formula "/ 60 * 30" is easier to write as "/ 2"

Type of change

  • Printer definition file(s)
  • Bug fix (non-breaking change which fixes an issue)
  • Clean up

How Has This Been Tested?

  • Tested with Cura version 5.11.0 and previous. Working well.

@github-actions github-actions bot added the PR: Community Contribution 👑 Community Contribution PR's label Nov 25, 2025
@github-actions
Copy link
Contributor

Test Results

24 506 tests  +24 506   24 498 ✅ +24 498   49s ⏱️ +49s
     1 suites +     1        2 💤 +     2 
     1 files   +     1        0 ❌ ±     0   6 🔥 +6 

For more details on these errors, see this check.

Results for commit c984744. ± Comparison against base commit db86084.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Community Contribution 👑 Community Contribution PR's

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant