From 18b8a66bc8d554c4d2e8d36cc76dd1cc883265e4 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 7 Oct 2018 22:09:44 +0200 Subject: [PATCH] print warning also in release mode if an object is still touched after recompute --- src/App/Document.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/App/Document.cpp b/src/App/Document.cpp index 3063938a47..43262a1394 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -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);