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

Method cloneExtraDataAndCheckIfChanged

Engine/KnobTypes.cpp:573–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573bool
574KnobChoice::cloneExtraDataAndCheckIfChanged(KnobI* other,
575 int /*dimension*/,
576 int /*otherDimension*/)
577{
578 KnobChoice* isChoice = dynamic_cast<KnobChoice*>(other);
579
580 if (!isChoice) {
581 return false;
582 }
583
584 ChoiceOption otherEntry = isChoice->getActiveEntry();
585 QMutexLocker k(&_entriesMutex);
586 if (_currentEntry.id != otherEntry.id) {
587 _currentEntry = otherEntry;
588
589 return true;
590 }
591
592 return false;
593}
594
595void
596KnobChoice::cloneExtraData(KnobI* other,

Callers

nothing calls this directly

Calls 4

getDimensionFunction · 0.85
getActiveEntryMethod · 0.80
getDimensionMethod · 0.45

Tested by

no test coverage detected