Skip to content

Commit

Permalink
#6 Fix broken converters
Browse files Browse the repository at this point in the history
  • Loading branch information
Daguerreo committed Nov 10, 2021
1 parent e0801c1 commit cde13a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/nodes/internal/Connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class NODE_EDITOR_PUBLIC Connection
NodeDataType
dataType(PortType portType) const;

TypeConverter getTypeConverter() const;
TypeConverter& typeConverter();

void
setTypeConverter(TypeConverter converter);
Expand Down
4 changes: 1 addition & 3 deletions src/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,7 @@ dataType(PortType portType) const
Q_UNREACHABLE();
}

TypeConverter
Connection::
getTypeConverter() const
QtNodes::TypeConverter& Connection::typeConverter()
{
return _converter;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ propagateData(PortIndex inPortIndex) const
Node* outNode = c->getNode(PortType::Out);
PortIndex outNodeIndex = c->getPortIndex(PortType::Out);
std::shared_ptr<NodeData> outData = outNode->nodeDataModel()->outData(outNodeIndex);
TypeConverter converter = c->getTypeConverter();
auto& converter = c->typeConverter();
if (converter != nullptr)
{
outData = converter(outData);
Expand Down

0 comments on commit cde13a5

Please sign in to comment.