summaryrefslogtreecommitdiffstats
path: root/src/server/events/CreatePatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/events/CreatePatch.cpp')
-rw-r--r--src/server/events/CreatePatch.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/events/CreatePatch.cpp b/src/server/events/CreatePatch.cpp
index 8bb381a2..92d7a5e3 100644
--- a/src/server/events/CreatePatch.cpp
+++ b/src/server/events/CreatePatch.cpp
@@ -85,11 +85,12 @@ CreatePatch::pre_process()
_patch->add_property(uris.rdf_type,
Resource::Property(uris.ingen_Node, Resource::EXTERNAL));
- if (_parent != NULL) {
+ if (_parent) {
_parent->add_node(new PatchImpl::Nodes::Node(_patch));
-
- if (_parent->enabled())
+ if (_parent->enabled()) {
+ _patch->enable();
_compiled_patch = _parent->compile();
+ }
}
_patch->activate(*_engine.buffer_factory());