| 8080 | } |
| 8081 | |
| 8082 | void |
| 8083 | Node::endInputEdition(bool triggerRender) |
| 8084 | { |
| 8085 | assert( QThread::currentThread() == qApp->thread() ); |
| 8086 | if (_imp->inputModifiedRecursion > 0) { |
| 8087 | --_imp->inputModifiedRecursion; |
| 8088 | } |
| 8089 | |
| 8090 | if (!_imp->inputModifiedRecursion) { |
| 8091 | bool hasChanged = !_imp->inputsModified.empty(); |
| 8092 | _imp->inputsModified.clear(); |
| 8093 | |
| 8094 | if (hasChanged) { |
| 8095 | if ( !getApp()->isCreatingNodeTree() ) { |
| 8096 | forceRefreshAllInputRelatedData(); |
| 8097 | } |
| 8098 | refreshDynamicProperties(); |
| 8099 | } |
| 8100 | |
| 8101 | triggerRender = triggerRender && hasChanged; |
| 8102 | |
| 8103 | if (triggerRender) { |
| 8104 | std::list<ViewerInstance* > viewers; |
| 8105 | hasViewersConnected(&viewers); |
| 8106 | for (std::list<ViewerInstance* >::iterator it2 = viewers.begin(); it2 != viewers.end(); ++it2) { |
| 8107 | (*it2)->renderCurrentFrame(true); |
| 8108 | } |
| 8109 | } |
| 8110 | } |
| 8111 | } |
| 8112 | |
| 8113 | void |
| 8114 | Node::onInputChanged(int inputNb, |
no test coverage detected