code: function allocateBones ( object ) {
  
  		// default for when object is not specified
  		// ( for example when prebuilding shader
  		//   to be used with multiple objects )
  		//
  		// 	- leave some extra space for other uniforms
  		//  - limit here is ANGLE's 254 max uniform vectors
  		//    (up to 54 should be safe)
  
  		var maxBones = 50;
  
  		if ( object !== undefined && object instanceof THREE.SkinnedMesh ) {
  
  			maxBones = object.bones.length;
  
  		}
  
  		return maxBones;
  
  	}
docs: Allocations