From 0f35f31d72f005f75b593dc7f563780ad0b65832 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 26 May 2015 17:17:26 +0000 Subject: [PATCH] From Thomas Hogarth, "Little fix for ClassInterface::getSupportedProperties, before if you set searchAssociates to false then it would return the same BaseSerialiser::Type for every entry in the PropertyMap as i was not being incremented on line 539. Fix attached." git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14874 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgDB/ClassInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgDB/ClassInterface.cpp b/src/osgDB/ClassInterface.cpp index 2fd1e49bc..c55741956 100644 --- a/src/osgDB/ClassInterface.cpp +++ b/src/osgDB/ClassInterface.cpp @@ -536,7 +536,7 @@ bool ClassInterface::getSupportedProperties(const osg::Object* object, PropertyM unsigned int i=0; for(osgDB::ObjectWrapper::SerializerList::const_iterator itr = serializers.begin(); itr != serializers.end(); - ++itr) + ++itr, ++i) { const std::string& propertyName = (*itr)->getName(); bool notBlackListed = (bl_itr == _blackList.end()) || (bl_itr->second.count(propertyName)==0);