Skip to content

Commit

Permalink
[dataflow][core] remove unwanted error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasPaulin committed Nov 2, 2022
1 parent 3800896 commit a284f66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Dataflow/Core/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Node::Node( const std::string& instanceName, const std::string& typeName ) :
}

bool Node::fromJson( const nlohmann::json& data ) {
if ( data.empty() ) {
// This is to avoid wrong error message when creating node from the editor
return true;
}
if ( data.contains( "model" ) ) {
if ( data["model"].contains( "instance" ) ) { m_instanceName = data["model"]["instance"]; }
}
Expand Down

0 comments on commit a284f66

Please sign in to comment.