#include <simgear/debug/logstream.hxx>
#include <simgear/misc/sgstream.hxx>
#include <simgear/scene/util/SGReaderWriterOptions.hxx>
+#include <simgear/scene/util/RenderConstants.hxx>
#include <simgear/scene/material/mat.hxx>
#include <simgear/scene/material/matlib.hxx>
#include <simgear/scene/tgdb/apt_signs.hxx>
std::string absName = osgDB::findDataFile(name, opt.get());
proxyNode->setFileName(0, absName);
if (SGPath(absName).lower_extension() == "ac")
+ {
+ proxyNode->setNodeMask( ~simgear::MODELLIGHT_BIT );
opt->setInstantiateEffects(true);
+ }
else
opt->setInstantiateEffects(false);
proxyNode->setDatabaseOptions(opt.get());
else
opt->setInstantiateEffects(false);
node = osgDB::readRefNodeFile(absName, opt.get());
+ if (SGPath(absName).lower_extension() == "ac")
+ node->setNodeMask( ~simgear::MODELLIGHT_BIT );
if (!node.valid()) {
SG_LOG( SG_TERRAIN, SG_ALERT, absoluteFileName