569 emit sceneChanged(); |
569 emit sceneChanged(); |
570 } |
570 } |
571 |
571 |
572 void GLCompiler::handleRowRemoval(const QModelIndex&, int first, int last) |
572 void GLCompiler::handleRowRemoval(const QModelIndex&, int first, int last) |
573 { |
573 { |
574 for (int row = last; row >= first; row -= 1) |
574 for (int row = last; row >= first; row -= 1) { |
575 forgetObject(m_renderer->model()->index(row)); |
575 auto index = m_renderer->model()->index(row); |
|
576 forgetObject(index); |
|
577 } |
576 |
578 |
577 this->needBoundingBoxRebuild = true; |
579 this->needBoundingBoxRebuild = true; |
578 emit sceneChanged(); |
580 emit sceneChanged(); |
579 } |
581 } |
580 |
582 |