Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions include/AutomationNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ class AutomationNode
m_outTangent = tangent;
}

/**
* @brief Sets the pattern this node belongs to
* @param AutomationPattern* pattern that m_pattern will be
* set to
*/
inline void setPattern(AutomationPattern* pat)
{
m_pattern = pat;
}

private:
// Pattern that this node belongs to
AutomationPattern* m_pattern;
Expand Down
2 changes: 2 additions & 0 deletions src/core/AutomationPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ AutomationPattern::AutomationPattern( const AutomationPattern & _pat_to_copy ) :
{
// Copies the automation node (in/out values and in/out tangents)
m_timeMap[POS(it)] = it.value();
// Sets the node's pattern to this one
m_timeMap[POS(it)].setPattern(this);
}
if (!getTrack()){ return; }
switch( getTrack()->trackContainer()->type() )
Expand Down