This applies to masks as well. Spotted while looking into T76872. Differential Revision: https://developer.blender.org/D7788