fix step for disabled operations and comments
This commit is contained in:
parent
002ed911b1
commit
083f556f3d
@ -46,7 +46,7 @@ class Recipe {
|
||||
module: OperationConfig[c.op].module,
|
||||
ingValues: c.args,
|
||||
breakpoint: c.breakpoint,
|
||||
disabled: c.disabled || c.op === "Comment",
|
||||
disabled: c.disabled,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@ -153,6 +153,13 @@ class App {
|
||||
// Remove all current indicators
|
||||
this.manager.recipe.updateBreakpointIndicator(false);
|
||||
|
||||
if (this.getRecipeConfig()[this.progress] && (this.getRecipeConfig()[this.progress].disabled || this.getRecipeConfig()[this.progress].op === "Comment")) {
|
||||
// Skip disabled operations and comments
|
||||
// This makes stepping through the recipe work correctly
|
||||
this.progress++;
|
||||
return this.bake(step);
|
||||
}
|
||||
|
||||
this.manager.worker.bake(
|
||||
this.getRecipeConfig(), // The configuration of the recipe
|
||||
this.options, // Options set by the user
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user