[Bf-blender-cvs] [31e27867070] blender-v2.82-release: Fix T71825: Custom Animation Player path overrides chosen player
Sybren A. Stüvel
noreply at git.blender.org
Mon Jan 20 17:32:42 CET 2020
Commit: 31e2786707049c40b9d8639639fd16a5cc0dce13
Author: Sybren A. Stüvel
Date: Mon Jan 20 17:32:16 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB31e2786707049c40b9d8639639fd16a5cc0dce13
Fix T71825: Custom Animation Player path overrides chosen player
Thanks @mano-wii for providing the patch!
The original code assumed that when `animation_player_preset` was not
`CUSTOM`, the `animation_player` path would be empty. This is a bad
assumption, as it can be quite useful to be able to toggle between a custom
and a built-in player. As such, `animation_player` should not be reset to
an empty string when a non-custom player is chosen.
===================================================================
M release/scripts/startup/bl_operators/screen_play_rendered_anim.py
===================================================================
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 756d2ff1eeb..3900fc3f2c2 100644
--- a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py
+++ b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py
@@ -85,12 +85,13 @@ class PlayRenderedAnim(Operator):
fps_final = rd.fps / rd.fps_base
preset = prefs.filepaths.animation_player_preset
- player_path = prefs.filepaths.animation_player
# file_path = bpy.path.abspath(rd.filepath) # UNUSED
is_movie = rd.is_movie_format
# try and guess a command line if it doesn't exist
- if player_path == "":
+ if preset == 'CUSTOM':
+ player_path = prefs.filepaths.animation_player
+ else:
player_path = guess_player_path(preset)
if is_movie is False and preset in {'FRAMECYCLER', 'RV', 'MPLAYER'}:
More information about the Bf-blender-cvs
mailing list