Skip to content

Commit cb18932

Browse files
committed
Fix bug when undoing a move before a source
1 parent 714632c commit cb18932

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Source/Processors/ProcessorGraph/ProcessorGraph.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,16 @@ void ProcessorGraph::moveProcessor(GenericProcessor* processor,
163163

164164
if (moveDownstream) // processor is further down the signal chain, its original dest may have changed
165165
{
166-
LOGD("MOVE: Updating settings for ", originalDest->getNodeId());
167-
updateSettings(originalDest);
166+
//LOGD("MOVE: Updating settings for ", originalDest->getNodeId());
167+
if (originalDest != nullptr)
168+
updateSettings(originalDest);
169+
else
170+
updateSettings(processor);
168171
}
169172

170173
else // processor is upstream of its original dest, so we can just update that
171174
{
172-
LOGD("MOVE: Updating settings for ", processor->getNodeId());
175+
//LOGD("MOVE: Updating settings for ", processor->getNodeId());
173176
updateSettings(processor);
174177
}
175178

0 commit comments

Comments
 (0)