This restores functionality lost with e8c9e85401. Differential Revision: https://developer.blender.org/D4714
e8c9e85401