Jump to content

[SOLVED] First "_" symbol in array names


photo

Recommended Posts

Posted

Something is wrong with parser.

 

 

void example(){
vec3 _p0,_p1;

// The difference between using "ret" and "_ret" names:

int ret[0];	
engine.world.getIntersection(_p0, _p1, ~0, ret);  // no problems

int _ret[0];
engine.world.getIntersection(_p0, _p1, ~0, _ret); // exception (see attachment)
}

post-83-097327000 1286879328_thumb.jpg

Posted

Please, use symbol "_" after the variable name :

int ret_[0];

Posted

Yes, I know various methods of renaming variables, so it's not a big problem :) Nevertheless, it's a bug, because non-array variables work well even with first "_" in their names.

Posted

We will fix this issue, please, stand by.

Posted

Can't reproduce on current build. The problem will be fixed on next update.

×
×
  • Create New...