Fix: Better fix for KeyingSet "Export to File" and unescaped characters

Use Python's native raw formatting instead, which should take care of any issues
we may face.
This commit is contained in:
Joshua Leung 2019-03-02 02:15:54 +13:00
parent dbeef6751d
commit 3804636ee5

@ -79,7 +79,7 @@ class ANIM_OT_keying_set_export(Operator):
f.write("# Keying Set Level declarations\n")
f.write("ks = scene.keying_sets.new(idname=\"%s\", name=\"%s\")\n"
"" % (ks.bl_idname, ks.bl_label))
f.write("ks.bl_description = \"\"\"%s\"\"\"\n" % ks.bl_description)
f.write("ks.bl_description = %r\n" % ks.bl_description)
if not ks.is_path_absolute:
f.write("ks.is_path_absolute = False\n")