Hi, I have just tracked down another issue with the VPB serializer. This time the issue arises when you try to add an optional layer (nb: this fails at an earlier point with the code in trunk at the moment, I will be submitting a fix for that tomorrow, though the issue can be demonstrated without it).
When build options that contain an optional layer are serialized an empty entry is added to the list. e.g. OptionalLayerSet 2 { "" "AnOptionalLayerName" } I believe the bug is in BuildOptionsIO.cpp, probably in the SetSerializer class, thought I haven't managed to track it down exactly yet. The attached files can be used to reproduce the error. original.source is a copy of the build_master.source that was written out when I tried to add an optional set. If you run: osgdem -s original.source --so original_resaved.source an error will be produced as the file cannot be read. I have also attached 'fixed.source'. This has had the "" removed (note that the number of items in the set is still set to 2). This file can be de-serialized and then re-serialized but the result has the extra "" included. This can be done by running: osgdem -s fixed.source --so fixed_result.source Cheers, Brad DISCLAIMER:--------------------------------------------------------------------------- This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. --------------------------------------------------------------------------------------
fixed.source
Description: fixed.source
original.source
Description: original.source
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org