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
2 changed files with 4 additions and 1 deletions
|
@ -189,6 +189,8 @@ sub init_print {
|
|||
$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;
|
||||
|
||||
# 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 <assert.h>
|
||||
#include <limits>
|
||||
|
||||
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;
|
||||
|
||||
// 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) {
|
||||
double mlh = config.max_layer_height.values[i];
|
||||
if (mlh == 0.)
|
||||
|
|
Loading…
Reference in a new issue