mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 21:59:08 +08:00
Fix of the last commits:
1) FLT_MAX replaced with limits, 2) apply_config is called by the test case harness to update layer height profile.
This commit is contained in:
parent
958c6553e7
commit
881a5c531b
@ -189,6 +189,8 @@ sub init_print {
|
|||||||
$print->add_model_object($model_object);
|
$print->add_model_object($model_object);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# Call apply_config one more time, so that the layer height profiles are updated over all PrintObjects.
|
||||||
|
$print->apply_config($config);
|
||||||
$print->validate;
|
$print->validate;
|
||||||
|
|
||||||
# We return a proxy object in order to keep $models alive as required by the Print API.
|
# We return a proxy object in order to keep $models alive as required by the Print API.
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#include "ToolOrdering.hpp"
|
#include "ToolOrdering.hpp"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
@ -253,7 +254,7 @@ void ToolOrdering::fill_wipe_tower_partitions(const PrintConfig &config, coordf_
|
|||||||
lt.has_wipe_tower = (lt.has_object && lt.wipe_tower_partitions > 0) || lt.print_z < object_bottom_z + EPSILON;
|
lt.has_wipe_tower = (lt.has_object && lt.wipe_tower_partitions > 0) || lt.print_z < object_bottom_z + EPSILON;
|
||||||
|
|
||||||
// Test for a raft, insert additional wipe tower layer to fill in the raft separation gap.
|
// Test for a raft, insert additional wipe tower layer to fill in the raft separation gap.
|
||||||
double max_layer_height = FLT_MAX;
|
double max_layer_height = std::numeric_limits<double>::max();
|
||||||
for (size_t i = 0; i < config.nozzle_diameter.values.size(); ++ i) {
|
for (size_t i = 0; i < config.nozzle_diameter.values.size(); ++ i) {
|
||||||
double mlh = config.max_layer_height.values[i];
|
double mlh = config.max_layer_height.values[i];
|
||||||
if (mlh == 0.)
|
if (mlh == 0.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user