Skip to content

Commit

Permalink
NodeSerialization: always serialize nodes with an expression
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Mar 23, 2021
1 parent 38b146a commit 8e83396
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Engine/NodeSerialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,21 @@ NodeSerialization::NodeSerialization(const NodePtr & n,
break;
}
}
if (!knobs[i]->getIsPersistent() && !hasExpr) {
continue;
}
// Always serialize nodes that have an expression or a link.
// See https://github.com/NatronGitHub/Natron/issues/585
// Already fixed in RB-3.0 by https://github.com/NatronGitHub/Natron/commit/7ef38849fe
if (!hasExpr) {
if ( !knobs[i]->getIsPersistent() ) {
continue;
}

if (!knobs[i]->hasModificationsForSerialization()) {
continue;
if ( !knobs[i]->hasModificationsForSerialization() ) {
continue;
}
}

KnobSerializationPtr newKnobSer = boost::make_shared<KnobSerialization>(knobs[i]);
_knobsValues.push_back(newKnobSer);

}

_nbKnobs = (int)_knobsValues.size();
Expand Down

0 comments on commit 8e83396

Please sign in to comment.