From e1ea99192e10149e0cac7a93f98fbec20e7cedb2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Apr 2015 17:10:58 +0000 Subject: Use lv2:prototype and deprecate ingen:prototype. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5652 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/events/CreateGraph.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/server/events/CreateGraph.cpp') diff --git a/src/server/events/CreateGraph.cpp b/src/server/events/CreateGraph.cpp index 06445a6b..b9661a13 100644 --- a/src/server/events/CreateGraph.cpp +++ b/src/server/events/CreateGraph.cpp @@ -76,8 +76,12 @@ CreateGraph::pre_process() const Raul::Symbol symbol((_path.is_root()) ? "root" : _path.symbol()); - // Create graph based on prototype - const iterator t = _properties.find(uris.ingen_prototype); + // Get graph prototype + iterator t = _properties.find(uris.lv2_prototype); + if (t == _properties.end()) { + t = _properties.find(uris.lv2_prototype); + } + if (t != _properties.end() && Raul::URI::is_valid(t->second.ptr()) && Node::uri_is_path(Raul::URI(t->second.ptr()))) { -- cgit v1.2.1