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

Method hasModificationsForSerialization

Engine/Knob.cpp:4222–4238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4220}
4221
4222bool
4223KnobHelper::hasModificationsForSerialization() const
4224{
4225 bool enabledChanged = false;
4226 bool defValueChanged = false;
4227 for (int i = 0; i < getDimension(); ++i) {
4228 if ( isEnabled(i) != isDefaultEnabled(i) ) {
4229 enabledChanged = true;
4230 }
4231 if (hasDefaultValueChanged(i)) {
4232 defValueChanged = true;
4233 }
4234 }
4235
4236 return hasModifications() ||
4237 getIsSecret() != getDefaultIsSecret() || enabledChanged || defValueChanged;
4238}
4239
4240bool
4241KnobHelper::hasModifications(int dimension) const

Callers 2

initializeMethod · 0.80

Calls 1

getDimensionFunction · 0.85

Tested by

no test coverage detected