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:
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user