Problems with vectors
Posted: Sun Apr 21, 2013 8:26 am
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:
, but this does not:
2. The following expression throws "Assertion failure" exception:
Code: Select all
trace(intToStr(vector3(1,2,3)[0]));
Code: Select all
vec3 v = vector3(1,2,3);
trace(intToStr(v[0]));