Fixed crash in loading osg files which have object types which arn't recognized.
This commit is contained in:
parent
99580f2212
commit
9e982e6b32
@ -371,7 +371,7 @@ osg::Object* Registry::readObjectOfType(const osg::Object& compObj,Input& fr)
|
||||
|
||||
}
|
||||
|
||||
if (!iteratorAdvanced) ++fr;
|
||||
if (!iteratorAdvanced) fr.advanceOverCurrentFieldOrBlock();
|
||||
}
|
||||
++fr; // step over trailing '}'
|
||||
|
||||
@ -439,7 +439,7 @@ osg::Object* Registry::readObject(DotOsgWrapperMap& dowMap,Input& fr)
|
||||
|
||||
}
|
||||
|
||||
if (!iteratorAdvanced) ++fr;
|
||||
if (!iteratorAdvanced) fr.advanceOverCurrentFieldOrBlock();
|
||||
}
|
||||
++fr; // step over trailing '}'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user