mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-17 05:52:39 +00:00
last step in fixing the g-code stuff up
This commit is contained in:
committed by
harrierpigeon
parent
79fd847ce3
commit
0342e06d87
+10
-1
@@ -14,6 +14,7 @@
|
||||
#include "GCode.hpp"
|
||||
#include "BeltGCode.hpp"
|
||||
#include "BeltTransform.hpp"
|
||||
#include "GCode/MachineFrameTransform.hpp"
|
||||
#include "GCode/WipeTower.hpp"
|
||||
#include "GCode/WipeTower2.hpp"
|
||||
#include "Utils.hpp"
|
||||
@@ -1436,9 +1437,17 @@ StringObjectException Print::validate(std::vector<StringObjectException> *warnin
|
||||
// is not comparable to printable_height (which is gantry clearance in the
|
||||
// build-volume frame). Compare against the model's pre-shear Z instead,
|
||||
// mirroring the bbox computed in PrintObject::update_slicing_parameters.
|
||||
// When the post-gcode MachineFrameTransform is active the printer's
|
||||
// physical Z mapping is non-trivial — skip the check entirely.
|
||||
const bool belt_printer = this->config().belt_printer.value;
|
||||
bool skip_max_height_check = false;
|
||||
if (belt_printer) {
|
||||
MachineFrameTransform machine_frame;
|
||||
machine_frame.init_from_config(this->config());
|
||||
skip_max_height_check = machine_frame.is_active();
|
||||
}
|
||||
const double shrinkage_compensation_z = this->shrinkage_compensation().z();
|
||||
for (size_t print_object_idx = 0; print_object_idx < m_objects.size(); ++ print_object_idx) {
|
||||
for (size_t print_object_idx = 0; !skip_max_height_check && print_object_idx < m_objects.size(); ++ print_object_idx) {
|
||||
const PrintObject &print_object = *m_objects[print_object_idx];
|
||||
|
||||
double effective_max_z = 0;
|
||||
|
||||
Reference in New Issue
Block a user