}
}
}
- if (hasEventsToFlush && myGroups.empty()) {
+ if (hasEventsToFlush && myGroups.empty() && myFlushed.empty()) {
// no more messages left in the queue, so, finalize the sketch processing
static Events_ID anID = Events_Loop::eventByName("SketchPrepared");
std::shared_ptr<Events_Message> aMsg(new Events_Message(anID, this));
(*aRIter)->attributeChanged("External");
}
}
- // send event that sketch is prepared to be recomputed
- static Events_ID anID = Events_Loop::eventByName("SketchPrepared");
- std::shared_ptr<Events_Message> aMsg(new Events_Message(anID, this));
- Events_Loop::loop()->send(aMsg);
}
if (!aIsModified) { // no modification is needed