Tech ENABLE_ALLOW_NEGATIVE_Z-> Disable sinking objects for SLA printer

This commit is contained in:
enricoturri1966 2021-05-06 14:04:07 +02:00
parent bb18edde0a
commit ff632a9ff2
5 changed files with 28 additions and 5 deletions

View file

@ -5816,7 +5816,11 @@ void Plater::changed_object(int obj_idx)
// recenter and re - align to Z = 0
auto model_object = p->model.objects[obj_idx];
#if ENABLE_ALLOW_NEGATIVE_Z
#if DISABLE_ALLOW_NEGATIVE_Z_FOR_SLA
model_object->ensure_on_bed(this->p->printer_technology != ptSLA);
#else
model_object->ensure_on_bed(true);
#endif // DISABLE_ALLOW_NEGATIVE_Z_FOR_SLA
#else
model_object->ensure_on_bed();
#endif // ENABLE_ALLOW_NEGATIVE_Z