Add API method to allow soft stage updates

This commit is contained in:
Shaunak Kishore
2015-10-28 01:32:05 -04:00
parent cb227961d4
commit 872c3ce476
3 changed files with 13 additions and 2 deletions

View File

@ -43,8 +43,10 @@ const forceRefresh = (from_construct_stage) => {
}
if (!_.isEqual(output, current)) {
glyph.stages[stage.type] = output;
for (let i = types.indexOf(stage.type) + 1; i < types.length; i++) {
glyph.stages[types[i]] = null;
if (!output || !current || stage.clearLaterStages(output, current)) {
for (let i = types.indexOf(stage.type) + 1; i < types.length; i++) {
glyph.stages[types[i]] = null;
}
}
Session.set('editor.glyph', glyph);
}