Skip to content

Commit

Permalink
tmxviewer: Also enable loading of XML object templates
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn committed Jun 18, 2024
1 parent a07e1b1 commit f2b65d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tmxviewer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include "pluginmanager.h"
#include "tiled.h"
#include "tmxmapformat.h"

#include <QApplication>
#include <QCommandLineParser>
Expand Down Expand Up @@ -60,6 +61,10 @@ int main(int argc, char *argv[])

Tiled::PluginManager::instance()->loadPlugins();

// Necessary to enable loading of object templates in XML format
Tiled::XmlObjectTemplateFormat xmlObjectTemplateFormat;
Tiled::PluginManager::addObject(&xmlObjectTemplateFormat);

QCommandLineParser parser;
parser.setApplicationDescription(QCoreApplication::translate("main", "Displays a Tiled map."));
parser.addHelpOption();
Expand Down

0 comments on commit f2b65d4

Please sign in to comment.