Separated out blender and nif matrix code.