CPasteNodeCommand: Make use of push_back over operator<<
This commit is contained in:
parent
07acac35c9
commit
e11ad95d37
|
@ -75,13 +75,14 @@ void CPasteNodesCommand::redo()
|
|||
pNewNode->SetRotation(rkNode.Rotation);
|
||||
pNewNode->SetScale(rkNode.Scale);
|
||||
|
||||
PastedNodes << pNewNode;
|
||||
PastedNodes.push_back(pNewNode);
|
||||
mpEditor->NotifyNodeSpawned(pNewNode);
|
||||
}
|
||||
|
||||
// If we didn't paste a valid node, add a null node so that the indices still match up with the indices from the mime data.
|
||||
else
|
||||
PastedNodes << nullptr;
|
||||
{
|
||||
PastedNodes.push_back(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
// Fix links. This is how fixes are prioritized:
|
||||
|
@ -118,7 +119,7 @@ void CPasteNodesCommand::redo()
|
|||
{
|
||||
CScriptObject *pReceiver = pLink->Receiver();
|
||||
pReceiver->AddLink(ELinkType::Incoming, pLink);
|
||||
mLinkedInstances << pReceiver;
|
||||
mLinkedInstances.push_back(pReceiver);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue