Skip to content

Commit

Permalink
Skip worldspawn when collecting selected nodes for model export.
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Aug 17, 2017
1 parent 8289f26 commit 6143a4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion radiant/model/ModelExporter.cpp
Expand Up @@ -7,6 +7,7 @@
#include "itextstream.h"
#include "imodel.h"
#include "os/fs.h"
#include "entitylib.h"
#include "registry/registry.h"
#include <stdexcept>
#include <fstream>
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 6143a4e

Please sign in to comment.