Final render wouldn't set compositor's update_draw callback, so added NULL check

Seems no extra notifiers should be added here.
This commit is contained in:
Sergey Sharybin 2012-11-30 11:26:57 +00:00
parent d2a741048a
commit 1db677a51c
2 changed files with 4 additions and 2 deletions

@ -352,7 +352,8 @@ void ExecutionGroup::execute(ExecutionSystem *graph)
startEvaluated = true;
numberEvaluated++;
bTree->update_draw(bTree->udh);
if (bTree->update_draw)
bTree->update_draw(bTree->udh);
}
else if (state == COM_ES_SCHEDULED) {
finished = false;

@ -248,7 +248,8 @@ public:
}
inline void updateDraw() {
this->m_btree->update_draw(this->m_btree->udh);
if (this->m_btree->update_draw)
this->m_btree->update_draw(this->m_btree->udh);
}
protected:
NodeOperation();