fix bug in update manager
This commit is contained in:
parent
b5e490a0f8
commit
2de6bc82b7
2 changed files with 5 additions and 3 deletions
|
|
@ -280,7 +280,7 @@ void PencilBrush::draw(Renderer* render, const Camera* camera) {
|
|||
}
|
||||
|
||||
PencilBrush::~PencilBrush() {
|
||||
if (mStroke) delete mStroke;
|
||||
delete mStroke;
|
||||
}
|
||||
|
||||
void PencilBrush::finish(Project* proj) {
|
||||
|
|
|
|||
|
|
@ -160,8 +160,10 @@ void UpdateManager::processActiveTree(Widget* iter, EventHandler& events, Vec2F
|
|||
procWidget(iter, events, false);
|
||||
}
|
||||
|
||||
for (auto child : iter->mDepthOrder) {
|
||||
processActiveTree(child.data(), events, current);
|
||||
for (auto child = iter->mDepthOrder.firstNode(); child;) {
|
||||
auto next = child->next; // any child may be removed at runtime
|
||||
processActiveTree(child->data, events, current);
|
||||
child = next;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue