CC 2.2.1: matrix mulScalar function gives error, why?

CC 2.2.1: matrix mulScalar function gives error, why?
0

Hi…,

why is mulScalar giving an error?

var mat = new cc.Mat4();
mat.identity();
mat.mulScalar( 250, mat ); // TypeError: _vmath.mat4.mulScalar is not a function

Thanks

Mike

We fixed this bug in CocosCreator 2.2.2.
This PR:https://github.com/cocos-creator/engine/pull/5647

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.