summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/NodeBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/NodeBase.cpp')
-rw-r--r--src/libs/engine/NodeBase.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libs/engine/NodeBase.cpp b/src/libs/engine/NodeBase.cpp
index 04afe3b6..203dc823 100644
--- a/src/libs/engine/NodeBase.cpp
+++ b/src/libs/engine/NodeBase.cpp
@@ -156,6 +156,7 @@ NodeBase::post_process(SampleCount nframes, FrameTime start, FrameTime end)
void
NodeBase::set_path(const Path& new_path)
{
+#if 0
const Path old_path = path();
//cerr << "Renaming " << old_path << " -> " << new_path << endl;
@@ -180,6 +181,15 @@ NodeBase::set_path(const Path& new_path)
assert(_store->find(new_path) == this);
+#endif
+ GraphObject::set_path(new_path);
+
+ // Rename children (ports)
+ for (size_t i=0; i < num_ports(); ++i) {
+ Port* const port = _ports->at(i);
+ const string name = port->path().name();
+ port->set_path(new_path.base() + name);
+ }
}