Skip to content

Commit

Permalink
- fixed #546
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Sep 30, 2024
1 parent bd3dbdd commit 73072e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion currentGitHash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2057eb72499e0be24b8effe0e908588d40d8311d
bd3dbddf93bcd4c1f9edaacd9ccba7d398c6d0e0
2 changes: 1 addition & 1 deletion hi_backend/backend/currentGit.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PREVIOUS_HISE_COMMIT "2057eb72499e0be24b8effe0e908588d40d8311d"
#define PREVIOUS_HISE_COMMIT "bd3dbddf93bcd4c1f9edaacd9ccba7d398c6d0e0"
10 changes: 9 additions & 1 deletion hi_scripting/scripting/scriptnode/ui/DspNetworkComponents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2457,8 +2457,16 @@ void KeyboardPopup::addNodeAndClose(String path)
var newNode;
auto network = container->getRootNetwork();

newNode = network->createFromValueTree(network->isPolyphonic(), newTree, true);
Array<DspNetwork::IdChange> changes;
newTree = network->cloneValueTreeWithNewIds(newTree, changes, false);

for(auto& c: changes)
network->changeNodeId(newTree, c.oldId, c.newId, nullptr);

newNode = network->createFromValueTree(true, newTree, true);

network->runPostInitFunctions();

auto as = dynamic_cast<AssignableObject*>(container);
as->assign(ap, newNode);

Expand Down

0 comments on commit 73072e0

Please sign in to comment.