This variable is nowhere set except to zero.
Modified Files:
model/SGPagedLOD.cxx model/SGReaderWriterXML.cxx
model/modellib.cxx model/modellib.hxx
{
osg::ref_ptr<SGModelData> d = opts->getModelData();
if(d.valid())
- d->modelLoaded(getFileName(getNumChildren()-1), d->getProperties(),
+ d->modelLoaded(getFileName(getNumChildren()-1), 0,
this);
}
return true;
}
if (data) {
- data->setProps(props);
options->setModelData(data);
}
opt->setModelData(data);
osg::Node *n = readNodeFile(path, opt.get());
if(data)
- data->modelLoaded(path, data->getProperties(), n);
+ data->modelLoaded(path, 0, n);
if (n && n->getName().empty())
n->setName("Direct loaded model \"" + path + "\"");
return n;
class SGModelData : public osg::Referenced {
public:
virtual ~SGModelData() {}
- virtual void modelLoaded( const string& path, SGPropertyNode *prop,
- osg::Node*branch) = 0;
-
- virtual void setProps(SGPropertyNode *p)
- { _props = p; }
-
- SGPropertyNode *getProperties()
- { return _props; }
-protected:
- SGPropertyNode_ptr _props;
+ virtual void modelLoaded(const string& path, SGPropertyNode *prop,
+ osg::Node* branch) = 0;
};
}