Merge branch 'blender-v4.3-release'

This commit is contained in:
Campbell Barton
2024-10-16 15:07:33 +11:00
11 changed files with 26 additions and 24 deletions

View File

@@ -116,7 +116,7 @@ def _read_blend_rend_chunk_from_file(blendfile, filepath):
scene_name = scene_name[:scene_name.index(b'\0')]
# It's possible old blend files are not UTF8 compliant, use `surrogateescape`.
scene_name = scene_name.decode("utf8", errors='surrogateescape')
scene_name = scene_name.decode("utf8", errors="surrogateescape")
scenes.append((start_frame, end_frame, scene_name))

View File

@@ -27,8 +27,8 @@ def compat_str(text, line_length=0):
text_ls.append(text)
text = '\n '.join(text_ls)
# text = text.replace('.', '.\n')
# text = text.replace(']', ']\n')
# text = text.replace(".", ".\n")
# text = text.replace("]", "]\n")
text = text.replace("\n", "\\n")
text = text.replace('"', '\\"')
return text