If there is no mask attribute yet and hidden vertices, the values for those vertices wouldn't be initialized. Fix by simply initializing the entire array when it's allocated.
If there is no mask attribute yet and hidden vertices, the values for those vertices wouldn't be initialized. Fix by simply initializing the entire array when it's allocated.