diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-12 12:06:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-12 12:06:06 +0400 |
commit | 7b15620da05bca40c24f3fc35646a86e03ad8198 (patch) | |
tree | 8675c923e18912a5be6646f463e5065ce0971c36 /release | |
parent | 9a07bd78fc95b8bfc7f565af232fa7bec5213d5a (diff) |
fix [#32350] F11 play animation crash when UI language is not "Default"
this is a bug in boost 1.46, can remove this env var override when this version of boost is no longer supported.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/screen_play_rendered_anim.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py index f00b92beeed..32658d353d9 100644 --- a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py +++ b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py @@ -146,8 +146,14 @@ class PlayRenderedAnim(Operator): # launch it print("Executing command:\n %r" % " ".join(cmd)) + # workaround for boost 1.46, can be eventually removed. bug: [#32350] + env_copy = os.environ.copy() + if preset == 'INTERNAL': + env_copy["LC_ALL"] = "C" + # end workaround + try: - subprocess.Popen(cmd) + subprocess.Popen(cmd, env=env_copy) except Exception as e: self.report({'ERROR'}, "Couldn't run external animation player with command " |