Fixed a couple of problems with the NodeKit support.
This commit is contained in:
@@ -151,6 +151,8 @@ void Registry::addDotOsgWrapper(DotOsgWrapper* wrapper)
|
||||
std::string libraryName = proto->libraryName();
|
||||
std::string compositeName = libraryName + "::" + name;
|
||||
|
||||
_objectWrapperMap[compositeName] = wrapper;
|
||||
|
||||
if (wrapper->getReadWriteMode()==DotOsgWrapper::READ_AND_WRITE) _classNameWrapperMap[proto->className()] = wrapper;
|
||||
|
||||
if (dynamic_cast<const Image*>(proto))
|
||||
|
||||
@@ -54,9 +54,9 @@ bool ModularEmitter_writeLocalData(const osg::Object &obj, osgDB::Output &fw)
|
||||
{
|
||||
const osgParticle::ModularEmitter &myobj = static_cast<const osgParticle::ModularEmitter &>(obj);
|
||||
|
||||
fw.writeObject(*myobj.getCounter());
|
||||
fw.writeObject(*myobj.getPlacer());
|
||||
fw.writeObject(*myobj.getShooter());
|
||||
if (myobj.getCounter()) fw.writeObject(*myobj.getCounter());
|
||||
if (myobj.getPlacer()) fw.writeObject(*myobj.getPlacer());
|
||||
if (myobj.getShooter()) fw.writeObject(*myobj.getShooter());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ bool ParticleProcessor_writeLocalData(const osg::Object &obj, osgDB::Output &fw)
|
||||
{
|
||||
const osgParticle::ParticleProcessor &myobj = static_cast<const osgParticle::ParticleProcessor &>(obj);
|
||||
|
||||
fw.writeObject(*myobj.getParticleSystem());
|
||||
if (myobj.getParticleSystem()) fw.writeObject(*myobj.getParticleSystem());
|
||||
|
||||
fw.indent() << "enabled ";
|
||||
if (myobj.isEnabled())
|
||||
|
||||
Reference in New Issue
Block a user