Fixed bug: Prints now pause before the user defined Layer to Pause on as opposed to pausing at the beginning of the next layer.
This commit is contained in:
parent
dd9d35e45d
commit
6acfcb51d4
1 changed files with 8 additions and 1 deletions
|
|
@ -308,7 +308,14 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
string[] userValues = GetActiveValue("layer_to_pause").Split(';');
|
||||
|
||||
int temp;
|
||||
return userValues.Where(v => int.TryParse(v, out temp)).Select(v => int.Parse(v)).ToArray();
|
||||
return userValues.Where(v => int.TryParse(v, out temp)).Select(v =>
|
||||
{
|
||||
//Convert from 0 based index to 1 based index
|
||||
int val = int.Parse(v);
|
||||
|
||||
// Special case for user entered zero that pushes 0 to 1, otherwise val = val - 1 for 1 based index
|
||||
return val == 0 ? 1 : val - 1;
|
||||
}).ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue