Show
Ignore:
Timestamp:
04/14/14 18:16:22 (6 days ago)
Author:
robert
Message:

Fixed comment

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/Geometry.cpp

    r13497 r13502  
    154154    if (array->getBinding() == static_cast<osg::Array::Binding>(ab)) return; \ 
    155155    array->setBinding(static_cast<osg::Array::Binding>(ab));\ 
    156     if (ab==BIND_PER_PRIMITIVE) _containsDeprecatedData = true; 
     156    if (ab==3 /*osg::Geometry::BIND_PER_PRIMITIVE*/) _containsDeprecatedData = true; 
    157157         
    158158 
     
    13531353    if (indices) setVertexArray(expandIndexArray(_vertexArray.get(), indices)); 
    13541354 
    1355     if (getNormalBinding()==osg::Geometry::BIND_PER_PRIMITIVE) containsBindPerPrimitive = true; 
     1355    if (getNormalBinding()==3 /*osg::Geometry::BIND_PER_PRIMITIVE*/) containsBindPerPrimitive = true; 
    13561356    indices = getIndexArray(_normalArray.get()); 
    13571357    if (indices) setNormalArray(expandIndexArray(getNormalArray(), indices)); 
    13581358 
    1359     if (getColorBinding()==osg::Geometry::BIND_PER_PRIMITIVE) containsBindPerPrimitive = true; 
     1359    if (getColorBinding()==3 /*osg::Geometry::BIND_PER_PRIMITIVE*/) containsBindPerPrimitive = true; 
    13601360    indices = getIndexArray(_colorArray.get()); 
    13611361    if (indices) setColorArray(expandIndexArray(getColorArray(), indices)); 
    13621362 
    1363     if (getSecondaryColorBinding()==osg::Geometry::BIND_PER_PRIMITIVE) containsBindPerPrimitive = true; 
     1363    if (getSecondaryColorBinding()==3 /*osg::Geometry::BIND_PER_PRIMITIVE*/) containsBindPerPrimitive = true; 
    13641364    indices = getIndexArray(_secondaryColorArray.get()); 
    13651365    if (indices) setSecondaryColorArray(expandIndexArray(getSecondaryColorArray(), indices)); 
    13661366 
    1367     if (getFogCoordBinding()==osg::Geometry::BIND_PER_PRIMITIVE) containsBindPerPrimitive = true; 
     1367    if (getFogCoordBinding()==3 /*osg::Geometry::BIND_PER_PRIMITIVE*/) containsBindPerPrimitive = true; 
    13681368    indices = getIndexArray(_fogCoordArray.get()); 
    13691369    if (indices) setFogCoordArray(expandIndexArray(getFogCoordArray(), indices)); 
     
    13771377    for(unsigned int vi=0;vi<_vertexAttribList.size();++vi) 
    13781378    { 
    1379         if (getVertexAttribBinding(vi)==osg::Geometry::BIND_PER_PRIMITIVE) containsBindPerPrimitive = true; 
     1379        if (getVertexAttribBinding(vi)==3 /*osg::Geometry::BIND_PER_PRIMITIVE*/) containsBindPerPrimitive = true; 
    13801380        indices = getIndexArray(_vertexAttribList[vi].get()); 
    13811381        if (indices) setVertexAttribArray(vi, expandIndexArray(getVertexAttribArray(vi), indices));