Make Regular Fan Speed At Layer one-based

This coincides with the layer view, which starts counting layers at 1, not 0.

Contributes to issue CURA-2314.
This commit is contained in:
Ghostkeeper 2016-09-16 16:45:34 +02:00
parent b9d7c02175
commit 628aa70e12
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -2228,10 +2228,10 @@
"label": "Regular Fan Speed at Layer",
"description": "The layer at which the fans spin on regular fan speed. If regular fan speed at height is set, this value is calculated and rounded to a whole number.",
"type": "int",
"default_value": 1,
"minimum_value": "0",
"default_value": 2,
"minimum_value": "1",
"maximum_value_warning": "100",
"value": "max(0, int(math.floor((cool_fan_full_at_height - layer_height_0) / layer_height) + 2))",
"value": "max(1, int(math.floor((cool_fan_full_at_height - layer_height_0) / layer_height) + 2))",
"settable_per_mesh": false,
"settable_per_extruder": true
}