Align with code in blender-addons.