three.js line - version 66 return error material default attribute values length -


i ran code displaying lines in buffergeometry version 63 version 66, , noticed had error telling me : uncaught typeerror: cannot read property 'length' of undefined @ three.js:22667 line three.js:22667 trying following:

if ( material.defaultattributevalues[ attributename ].length === 2 ) { 

while preceding if statement in line 22665 asks if:

} else if ( material.defaultattributevalues ) { 

if replace line 22665 in three.js :

} else if ( material.defaultattributevalues[ attributename ] ) { 

then error message disappears , three.js runs fine. hope useful else encounters same problem. wondering if should define buffergeometry of lines in new fashion in three.js version 66 (compared version 63) ?

cheers!


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -