Fixed bug in the Use mechansim in Registry.cpp, sumbitted by Macro Jez.

This commit is contained in:
Robert Osfield
2002-05-28 15:17:45 +00:00
parent 6ab93ff61d
commit dc883b0577

View File

@@ -308,8 +308,11 @@ osg::Object* Registry::readObjectOfType(const osg::Object& compObj,Input& fr)
if (fr[1].isString())
{
Object* obj = fr.getObjectForUniqueID(fr[1].getStr());
if (compObj.isSameKindAs(obj)) fr+=2;
return obj;
if (compObj.isSameKindAs(obj))
{
fr+=2;
return obj;
}
}
else return NULL;