From 809a66f18cd0a7dd5f8e54defaf626e0082edb01 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Oct 21 2020 07:39:56 +0000 Subject: fix saving fx ports --- diff --git a/toonz/sources/common/tfx/tfx.cpp b/toonz/sources/common/tfx/tfx.cpp index ea984c3..d5bdd5e 100644 --- a/toonz/sources/common/tfx/tfx.cpp +++ b/toonz/sources/common/tfx/tfx.cpp @@ -873,11 +873,10 @@ void TFx::saveData(TOStream &os) { } os.openChild("ports"); - for (PortTable::iterator pit = m_imp->m_portTable.begin(); - pit != m_imp->m_portTable.end(); ++pit) { - os.openChild(pit->first); - if (pit->second->isConnected()) - os << TFxP(pit->second->getFx()).getPointer(); + for (auto &namePort : m_imp->m_portArray) { + os.openChild(namePort.first); + if (namePort.second->isConnected()) + os << TFxP(namePort.second->getFx()).getPointer(); os.closeChild(); } os.closeChild();