Mercurial > hg > svcore
diff data/model/Model.cpp @ 951:4b9fc70a37d5
Debug output stuff
author | Chris Cannam |
---|---|
date | Fri, 25 Jul 2014 17:02:44 +0100 |
parents | 59e7fe1b1003 |
children | 4a2c150ecd67 |
line wrap: on
line diff
--- a/data/model/Model.cpp Fri Jul 25 15:21:41 2014 +0100 +++ b/data/model/Model.cpp Fri Jul 25 17:02:44 2014 +0100 @@ -109,6 +109,7 @@ int Model::alignToReference(int frame) const { +// cerr << "Model(" << this << ")::alignToReference(" << frame << ")" << endl; if (!m_alignment) { if (m_sourceModel) return m_sourceModel->alignToReference(frame); else return frame; @@ -116,18 +117,21 @@ int refFrame = m_alignment->toReference(frame); const Model *m = m_alignment->getReferenceModel(); if (m && refFrame > m->getEndFrame()) refFrame = m->getEndFrame(); +// cerr << "have alignment, aligned is " << refFrame << endl; return refFrame; } int Model::alignFromReference(int refFrame) const { +// cerr << "Model(" << this << ")::alignFromReference(" << refFrame << ")" << endl; if (!m_alignment) { if (m_sourceModel) return m_sourceModel->alignFromReference(refFrame); else return refFrame; } int frame = m_alignment->fromReference(refFrame); if (frame > getEndFrame()) frame = getEndFrame(); +// cerr << "have alignment, aligned is " << frame << endl; return frame; }