remove mesh origin snapping

This commit is contained in:
Joseph Robertson
2026-06-10 05:10:20 -05:00
parent 6ed2437848
commit 9405ac5976
9 changed files with 17 additions and 193 deletions
+1 -6
View File
@@ -9,7 +9,7 @@ namespace Slic3r {
// Inherits from GCode and overrides virtual hooks to:
// - Create a BeltGCodeWriter instead of a plain GCodeWriter
// - Write belt configuration to the G-code header
// - Update per-axis origin snap when switching instances
// - Adjust the origin for global pre-slice transforms when switching instances
// - Disable arc fitting (G2/G3 not supported on belt printers)
class BeltGCode : public GCode
{
@@ -18,11 +18,6 @@ protected:
void write_belt_header(GCodeOutputStream &file, const Print &print) override;
void on_set_origin(const PrintObject *obj, const Point &inst_shift) override;
bool should_disable_arc_fitting() const override { return true; }
private:
// Per-axis origin snap config (set during init, used in on_set_origin).
bool m_origin_snap[3] = {false, false, false};
double m_origin_snap_offset[3] = {0., 0., 0.};
};
} // namespace Slic3r