Page 1 of 1

Problems with vectors

Posted: Sun Apr 21, 2013 8:26 am
by Rado1
1. Problems with passing vectors from arrays as parameter values of function calls. For example, running the attached model throws different exceptions, such as Access violation, Array out of range, or Out of memory. Sometimes it produces incorrect outputs (function foo() returns 0 in the second call) without exceptions.

2. The following expression throws "Assertion failure" exception:

Code: Select all

trace(intToStr(vector3(1,2,3)[0]));
, but this does not:

Code: Select all

vec3 v = vector3(1,2,3);
trace(intToStr(v[0]));

Posted: Mon Apr 22, 2013 8:30 am
by VilleK
There seems to be several problems still present with the new array types as this bug report clearly demonstrates. I'll have to wait with fixing it until I have more time, hopefully soon.