Mercurial > hg > easaier-soundaccess
diff sv/document/Document.cpp @ 30:1894b1f1326b
bug correction: when the main model is loaded after, we had the message:
"Failed to regenerate layer..."
author | lbajardsilogic |
---|---|
date | Mon, 14 May 2007 15:38:08 +0000 |
parents | 2a6f70f97395 |
children | 32b4949086a5 |
line wrap: on
line diff
--- a/sv/document/Document.cpp Mon May 14 15:27:11 2007 +0000 +++ b/sv/document/Document.cpp Mon May 14 15:38:08 2007 +0000 @@ -265,7 +265,8 @@ continue; } - if (m_models[model].source == oldMainModel) { + if ((m_models[model].source == oldMainModel) && (m_models[model].transform != "")) { + //if (m_models[model].source == oldMainModel) { //correct the bug if a layer and model is load before the main model // std::cerr << "... it uses a model derived from the old main model, regenerating" << std::endl;