MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / onAutoContrastChanged

Method onAutoContrastChanged

Engine/ViewerInstance.cpp:3063–3080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3061}
3062
3063void
3064ViewerInstance::onAutoContrastChanged(bool autoContrast,
3065 bool refresh)
3066{
3067 // always running in the main thread
3068 assert( qApp && qApp->thread() == QThread::currentThread() );
3069 bool changed = false;
3070 {
3071 QMutexLocker l(&_imp->viewerParamsMutex);
3072 if (_imp->viewerParamsAutoContrast != autoContrast) {
3073 _imp->viewerParamsAutoContrast = autoContrast;
3074 changed = true;
3075 }
3076 }
3077 if ( changed && refresh && !getApp()->getProject()->isLoadingProject() ) {
3078 renderCurrentFrame(true);
3079 }
3080}
3081
3082bool
3083ViewerInstance::isAutoContrastEnabled() const

Callers

nothing calls this directly

Calls 3

getAppFunction · 0.85
isLoadingProjectMethod · 0.80
getProjectMethod · 0.80

Tested by

no test coverage detected