core: changed ortho node ID

Fixes collision where transform and ortho nodes had the same ID. Renames ortho ID and automatically corrects
old projects with the old ID. Bumps the project version as a result.
This commit is contained in:
itsmattkc
2020-11-22 22:32:09 +11:00
parent 96ad22d3e6
commit ed6f4eed3e
3 changed files with 10 additions and 2 deletions
+8
View File
@@ -139,6 +139,14 @@ void Sequence::Load(QXmlStreamReader *reader, XMLNodeData& xml_node_data, uint v
}
}
if (version <= 201118) {
// After version 201118, the orthographic matrix node ID was changed from
// "org.olivevideoeditor.Olive.transform" to "org.olivevideoeditor.Olive.ortho"
if (id == QStringLiteral("org.olivevideoeditor.Olive.transform")) {
id = QStringLiteral("org.olivevideoeditor.Olive.ortho");
}
}
node = NodeFactory::CreateFromID(id);
break;
}