Solving issue with first empty layer.

This commit is contained in:
tamasmeszaros 2019-01-15 14:25:28 +01:00
parent 519f5e5ea7
commit 831de96a81
3 changed files with 10 additions and 4 deletions

View file

@ -732,9 +732,7 @@ void SLAPrint::process()
po.m_supportdata->level_ids.reserve(sslices.size());
for(int i = 0; i < int(sslices.size()); ++i) {
int a = i == 0 ? 0 : 1;
int b = i == 0 ? 0 : i - 1;
LevelID h = sminZ + a * sih + b * slh;
LevelID h = sminZ + sih + i * slh;
po.m_supportdata->level_ids.emplace_back(h);
float fh = float(double(h) * SCALING_FACTOR);