MCPcopy Create free account
hub / github.com/MrKepzie/Natron / getPersistentMessage

Method getPersistentMessage

Engine/Node.cpp:7466–7490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7464}
7465
7466void
7467Node::getPersistentMessage(QString* message,
7468 int* type,
7469 bool prefixLabelAndType) const
7470{
7471#ifdef NATRON_ENABLE_IO_META_NODES
7472 NodePtr ioContainer = getIOContainer();
7473 if (ioContainer) {
7474 return ioContainer->getPersistentMessage(message, type, prefixLabelAndType);
7475 }
7476#endif
7477 QMutexLocker k(&_imp->persistentMessageMutex);
7478
7479 *type = _imp->persistentMessageType;
7480
7481 if ( prefixLabelAndType && !_imp->persistentMessage.isEmpty() ) {
7482 message->append( QString::fromUtf8( getLabel_mt_safe().c_str() ) );
7483 if (*type == eMessageTypeError) {
7484 message->append( QString::fromUtf8(" error: ") );
7485 } else if (*type == eMessageTypeWarning) {
7486 message->append( QString::fromUtf8(" warning: ") );
7487 }
7488 }
7489 message->append(_imp->persistentMessage);
7490}
7491
7492void
7493Node::clearPersistentMessageRecursive(std::list<Node*>& markedNodes)

Calls 2

appendMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected