On 03/14/2012 07:21 AM, Luc Frauciel wrote:
3) they contain empty primitive lists
-> reading is ok, but osgviewer crashes when trying to display the
geometries
The reason is that osg assume that DrawElementsare never empty (blunt
acces to DrawElements.front() in PrimitiveSet.cpp)
I corrected this (on the plugin side), but I wonder :
Is it the responsability of plugins to create non empty DrawElements,
or of osg core not to crash when they occur ?
If the responsability is on the osg core side, I can submit a patch to
PrimitiveSet.cpp regarding that aspect.
I'll just note that I've seen geometry with empty primitive lists come
out of the OpenCollada exporter for 3ds Max as well. It's probably best
if the plugin is able to handle these (even though they really shouldn't
be happening).
--"J"
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org