Patch by Ted Schundler (tschundler), thanks! Differential Revision: https://developer.blender.org/D2163