typo & debug fix for z_step

This commit is contained in:
supermerill 2020-09-04 21:15:09 +02:00
parent 95318d66d1
commit 20a8d2f709
2 changed files with 2 additions and 2 deletions

View File

@ -1258,7 +1258,7 @@ void PrintConfigDef::init_fff_params()
def->set_default_value(new ConfigOptionFloats{ 1.75 });
def = this->add("filament_shrink", coPercents);
def->label = L("Shrikage");
def->label = L("Shrinkage");
def->tooltip = L("Enter the shrinkage percentage that the filament will get after cooling (94% if you measure 94mm instead of 100mm)."
" The part will be scaled in xy to conpensate."
" Only the filament used for the perimeter is taken into account."

View File

@ -32,7 +32,7 @@ coordf_t check_z_step(const coordf_t val, const coordf_t z_step) {
//return int((val + z_step * 0.5) / z_step) * z_step;
}
inline bool test_z_step(const coordf_t val, const coordf_t z_step) {
if (z_step <= EPSILON) return val;
if (z_step <= EPSILON) return true;
uint64_t valint = uint64_t(val * 100000000. + 0.1);
uint64_t stepint = uint64_t(z_step * 100000000. + 0.1);
return valint % stepint == 0;