Hey Everyone,
First post up.. so apologies in advance to BUG you all straight off =)
I've found something that isn't necessarily a bug, my problem more
stems from the fact that LightWave is atrocious at producing collada
files that reliably work with anything else.. (although it has gotten
better).. BUT.. if I'm outputting a collada file from LightWave and
have no animations present, my collada file contains this empty
animation node:
<library_animations></library_animations>
Because of the presence of the node, but no children, the
parseAnimationClips function in Collada.as slips through and thinks
there is animation clip nodes to parse which results in a null
exception when trying to read the _channelArray.length ... I tried
this is a quick fix replacing line 929:
if ( _channelArray != null ){
_channelArrayLength = _channelArray.length;
}else {
_channelArrayLength = 0;
}
but this didn't allow the notifySuccess to be called. Obviously if I
remove the empty node manually from the collada file everything is ok.
But it seemed like the cleaner more infallible solution would be to
add this at line 880:
if (!clips) {
Debug.trace(" ! ------------- No animation clip nodes to parse
-------------");
return;
}
Thoughts? and ps: awesome job on the engine, its so nicely organised,
well done!!!
Cheers!
Jason Rawlings