From Brede Johansen, support for contiuation records.
This commit is contained in:
@@ -72,7 +72,6 @@ public:
|
||||
|
||||
META_setID(_geode)
|
||||
META_setComment(_geode)
|
||||
META_setMatrix(_geode)
|
||||
META_setMultitexture(_geode)
|
||||
|
||||
// draw mode
|
||||
@@ -434,10 +433,17 @@ protected:
|
||||
return osg::PrimitiveSet::POLYGON;
|
||||
}
|
||||
|
||||
virtual void popLevel(Document& document)
|
||||
virtual void dispose(Document& document)
|
||||
{
|
||||
if (_geode.valid())
|
||||
{
|
||||
// Insert transform(s)
|
||||
if (_matrix.valid())
|
||||
{
|
||||
insertMatrixTransform(*_geode,*_matrix,_numberOfReplications);
|
||||
}
|
||||
|
||||
// Add primitives, set bindings etc.
|
||||
for (unsigned int i=0; i<_geode->getNumDrawables(); ++i)
|
||||
{
|
||||
osg::Geometry* geometry = dynamic_cast<osg::Geometry*>(_geode->getDrawable(i));
|
||||
@@ -728,7 +734,6 @@ public:
|
||||
|
||||
META_setID(_geode)
|
||||
META_setComment(_geode)
|
||||
META_setMatrix(_geode)
|
||||
META_setMultitexture(_geode)
|
||||
|
||||
// draw mode
|
||||
@@ -964,10 +969,16 @@ protected:
|
||||
_parent->addChild(*_geode);
|
||||
}
|
||||
|
||||
virtual void popLevel(Document& document)
|
||||
virtual void dispose(Document& document)
|
||||
{
|
||||
if (_geode.valid())
|
||||
{
|
||||
// Insert transform(s)
|
||||
if (_matrix.valid())
|
||||
{
|
||||
insertMatrixTransform(*_geode,*_matrix,_numberOfReplications);
|
||||
}
|
||||
|
||||
osg::StateSet* stateset = _geode->getOrCreateStateSet();
|
||||
|
||||
// Translucent image?
|
||||
|
||||
Reference in New Issue
Block a user