AlternativaPlatform/Alternativa3D — pull request #34 by davidejones (2012-10-17 21:14:40+00:00)
Title: Collada fix for incorrect array count

Some blender exported .dae files contain an incorrect count for array data. A simple check can easily fix this issue.

Example: The following code below was in the .dae file. the count was listed as 736 however the array of data was actually 560 in length. This caused the calculation of

```actionscript
if (array.array.length < (offset + (count*stride)))
// 560 < 736
```
to always be true causing an error output

```xml

....space seperated data 560 in length...

```

The changes I made check to see if the condition is true and instead of just outputting the error it attempts to use the actual length of the array data rather than using the count variable. If this also fails then an error is output.