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() {
|
PencilBrush::~PencilBrush() {
|
||||||
if (mStroke) delete mStroke;
|
delete mStroke;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PencilBrush::finish(Project* proj) {
|
void PencilBrush::finish(Project* proj) {
|
||||||
|
|
|
||||||
|
|
@ -160,8 +160,10 @@ void UpdateManager::processActiveTree(Widget* iter, EventHandler& events, Vec2F
|
||||||
procWidget(iter, events, false);
|
procWidget(iter, events, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto child : iter->mDepthOrder) {
|
for (auto child = iter->mDepthOrder.firstNode(); child;) {
|
||||||
processActiveTree(child.data(), events, current);
|
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