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.
This commit is contained in:
@@ -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 "
|
||||
|
Reference in New Issue
Block a user