oSceneLoaderLib: Assertion on pRep

Nowec

04-03-2006 23:59:52

When I was playing around with an osm-file I got an assertion on pRep in ogresharedptr.h.
Took me some time to figure out that it was because I forgot to close an element-tag:
<scale x="1" y="1" z="1">
instead of
<scale x="1" y="1" z="1" />

I really don't think that an Ogre assertion should show us that there's something wrong with the osm-file while loading it.
Should the loader check that and generate some other message? Just a suggestion though... :)

Lioric

05-03-2006 02:46:43

We will consider it, thanks

But an assertion is needed as a wrong file is a serious issue, if its just reported and continued with the normal loading, can present you with more complex issue and more work to identify it

Nowec

05-03-2006 09:39:42

Great, thanks a lot.

I'm not against the assertions, they are great.
Just thought that it would be better if it also provided some additional information about what's wrong. :)