diff options
author | Joshua Leung <aligorith@gmail.com> | 2019-03-01 16:15:54 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2019-03-01 16:30:31 +0300 |
commit | 3804636ee57b58c0ca02dd5360f6df62603ae929 (patch) | |
tree | 272154c30cd9a5c9c150a587f61f4c7f85264741 /release | |
parent | dbeef6751db3cf300a588b1530441ff685d3f103 (diff) |
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.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/anim.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/anim.py b/release/scripts/startup/bl_operators/anim.py index 61247f1ae1e..4f2642bbe7c 100644 --- a/release/scripts/startup/bl_operators/anim.py +++ b/release/scripts/startup/bl_operators/anim.py @@ -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") |