Fixes bug in the AutomationPattern copy-ctor (#5968)
On the AutomationPattern copy constructor, the automation nodes were copied from the origin pattern but their "owner pattern" pointers weren't updated. Thanks Dom for finding and reporting this bug.
This commit is contained in:
@@ -130,6 +130,16 @@ public:
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user