Cleanup: Use blender::Vector.

This commit is contained in:
2021-03-05 16:45:11 +01:00
parent 0729376a13
commit ffd5b0d91e
4 changed files with 28 additions and 43 deletions

View File

@@ -121,7 +121,7 @@ ExecutionSystem::~ExecutionSystem()
this->m_groups.clear();
}
void ExecutionSystem::set_operations(const Operations &operations,
void ExecutionSystem::set_operations(const blender::Vector<NodeOperation *> &operations,
const blender::Vector<ExecutionGroup *> &groups)
{
m_operations = operations;
@@ -136,10 +136,7 @@ void ExecutionSystem::execute()
DebugInfo::execute_started(this);
unsigned int order = 0;
for (std::vector<NodeOperation *>::iterator iter = this->m_operations.begin();
iter != this->m_operations.end();
++iter) {
NodeOperation *operation = *iter;
for (NodeOperation *operation : m_operations) {
if (operation->isReadBufferOperation()) {
ReadBufferOperation *readOperation = (ReadBufferOperation *)operation;
readOperation->setOffset(order);