mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 16:22:07 +08:00
typo & debug fix for z_step
This commit is contained in:
parent
95318d66d1
commit
20a8d2f709
@ -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."
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user