print warning also in release mode if an object is still touched after recompute

This commit is contained in:
wmayer
2018-10-07 22:09:44 +02:00
parent be8b1b52c1
commit 84280330aa

View File

@@ -2249,13 +2249,14 @@ int Document::recompute()
inObjIt->enforceRecompute();
}
}
#ifdef FC_DEBUG
// check if all objects are recalculated which were touched
for (auto objectIt : d->objectArray) {
if (objectIt->isTouched())
cerr << "Document::recompute(): " << objectIt->getNameInDocument() << " still touched after recompute" << endl;
if (objectIt->isTouched()) {
Base::Console().Warning("Document::recompute(): %s still touched after recompute\n",
objectIt->getNameInDocument());
}
}
#endif
signalRecomputed(*this);