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

Method endInputEdition

Engine/Node.cpp:8082–8111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8080}
8081
8082void
8083Node::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
8113void
8114Node::onInputChanged(int inputNb,

Callers 3

endChangesMethod · 0.80
onProjectViewsChangedMethod · 0.80
redoMethod · 0.80

Calls 7

getAppFunction · 0.85
emptyMethod · 0.80
isCreatingNodeTreeMethod · 0.80
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
renderCurrentFrameMethod · 0.45

Tested by

no test coverage detected