add global mesh transform option

This commit is contained in:
harrierpigeon
2026-04-09 23:48:43 -05:00
parent 1e9ee0c120
commit 0703728e56
11 changed files with 135 additions and 40 deletions

View File

@@ -15,7 +15,9 @@ bool BeltBackTransform::init_from_config(const PrintConfig &config)
bool has_global_shear = config.belt_shear_x_global.value ||
config.belt_shear_y_global.value ||
config.belt_shear_z_global.value;
if (!has_global_shear && !BeltTransformPipeline::has_preslice_remap(config))
bool has_preslice_global = config.belt_preslice_global.value
|| config.preslice_remap_global.value;
if (!has_global_shear && !has_preslice_global && !BeltTransformPipeline::has_preslice_remap(config))
return false;
// Build the forward pipeline (scale * shear * pre_remap) and store its inverse.