[osg-users] Problem with Optimizer - FLATTEN_STATIC_TRANSFORMS

Brian osgscene at gmail.com
Sun Sep 14 07:20:54 PDT 2008


opps sorry bad code block.  It should be


if((geometry)&&isOperationPermissibleForObject(&geode)&&(isOperationPermissibleForObject(geometry)))
            {
                if(geometry->getVertexArray() &&
geometry->getVertexArray()->referenceCount() > 1) {

geometry->setVertexArray(dynamic_cast<osg::Array*>(geometry->getVertexArray()->clone(osg::CopyOp::DEEP_COPY_ALL)));
                }
                if(geometry->getNormalArray() &&
geometry->getNormalArray()->referenceCount() > 1) {

geometry->setNormalArray(dynamic_cast<osg::Array*>(geometry->getNormalArray()->clone(osg::CopyOp::DEEP_COPY_ALL)));
                }
            }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080914/a915783c/attachment-0003.htm>


More information about the osg-users mailing list