Skip to content

Commit

Permalink
Fix errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuscu committed Oct 1, 2024
1 parent b3ae348 commit cd37a83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/nodegraph/include/nodegraph/core/NodeGraphBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace l::nodegraph {

template<class T>
bool IsOfOperation() {
return l::meta::template class_hash<T> == mOperationTypeId;
return l::meta::template class_hash<T> == mOperationTypeHash;
}

protected:
Expand Down Expand Up @@ -183,9 +183,10 @@ namespace l::nodegraph {
public:
NodeGraph(NodeType outputType = NodeType::Default, Params&&... params) :
NodeGraphBase(outputType),
mOperation(this, std::forward<Params>(params)...),
mOperationTypeId = typeid(T)
mOperation(this, std::forward<Params>(params)...)
{
mOperationTypeHash = l::meta::class_hash<T>();

SetNumInputs(mOperation.GetNumInputs());
SetNumOutputs(mOperation.GetNumOutputs());

Expand Down

0 comments on commit cd37a83

Please sign in to comment.