# HG changeset patch # User lbajardsilogic # Date 1179157088 0 # Node ID 1894b1f1326b0ad4227539286b065f956602e3d6 # Parent d2dc3a24e24f892ab0c969d22f6b434fc7d909a5 bug correction: when the main model is loaded after, we had the message: "Failed to regenerate layer..." diff -r d2dc3a24e24f -r 1894b1f1326b sv/document/Document.cpp --- 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;