diff --git a/radiant/model/ModelExporter.cpp b/radiant/model/ModelExporter.cpp index 46305038e3..8c964fb934 100644 --- a/radiant/model/ModelExporter.cpp +++ b/radiant/model/ModelExporter.cpp @@ -7,6 +7,7 @@ #include "itextstream.h" #include "imodel.h" #include "os/fs.h" +#include "entitylib.h" #include "registry/registry.h" #include #include @@ -73,7 +74,8 @@ void ModelExporter::setCenterObjects(bool centerObjects) bool ModelExporter::pre(const scene::INodePtr& node) { - if (!_exporter) return false; + // Skip worldspawn + if (Node_isWorldspawn(node)) return true; _nodes.push_back(node);