The layer mask used by the armature modifier can be incomplete, in which case the indices may not match the edit hints list of layer data. The actual layer index must be used instead. Also fixes a build error on Win64 ARM which cannot compile a parallel_for_each over an index range. Pull Request: https://projects.blender.org/blender/blender/pulls/131620