From 240f6f0c4e6f5d2770fd166f162df41906e2e230 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 20 May 2008 04:45:45 +0000 Subject: Fix "unable to create patch '/'" error when importing at root. git-svn-id: http://svn.drobilla.net/lad/ingen@1222 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/serialisation/Loader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/serialisation/Loader.cpp b/src/libs/serialisation/Loader.cpp index c53755f5..162589b6 100644 --- a/src/libs/serialisation/Loader.cpp +++ b/src/libs/serialisation/Loader.cpp @@ -112,7 +112,8 @@ Loader::load(SharedPtr engine, cout << " as " << patch_path << endl; - engine->create_patch(patch_path, patch_poly); + if (patch_path != "/") + engine->create_patch(patch_path, patch_poly); /* Load (plugin) nodes */ -- cgit v1.2.1