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

Method hasModificationsForSerialization

Engine/Knob.cpp:4460–4476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4458}
4459
4460bool
4461KnobHelper::hasModificationsForSerialization() const
4462{
4463 bool enabledChanged = false;
4464 bool defValueChanged = false;
4465 for (int i = 0; i < getDimension(); ++i) {
4466 if ( isEnabled(i) != isDefaultEnabled(i) ) {
4467 enabledChanged = true;
4468 }
4469 if (hasDefaultValueChanged(i)) {
4470 defValueChanged = true;
4471 }
4472 }
4473
4474 return hasModifications() ||
4475 getIsSecret() != getDefaultIsSecret() || enabledChanged || defValueChanged;
4476}
4477
4478bool
4479KnobHelper::hasModifications(int dimension) const

Callers 2

initializeMethod · 0.80

Calls 1

getDimensionFunction · 0.85

Tested by

no test coverage detected