[Bf-blender-cvs] [9ea345d1cf8] blender-v2.91-release: Fix animation player initialization
Campbell Barton
noreply at git.blender.org
Thu Oct 22 08:12:40 CEST 2020
Commit: 9ea345d1cf82f0770d7bb90ccac4bc6df00f9a94
Author: Campbell Barton
Date: Thu Oct 22 17:07:56 2020 +1100
Branches: blender-v2.91-release
https://developer.blender.org/rB9ea345d1cf82f0770d7bb90ccac4bc6df00f9a94
Fix animation player initialization
Updates from 9d30fade3ea9b weren't applied to the animation player
causing an assert and missing call to IMB_init.
===================================================================
M source/blender/blenkernel/intern/appdir.c
M source/creator/creator_args.c
===================================================================
diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c
index 00c62340e16..2038079744d 100644
--- a/source/blender/blenkernel/intern/appdir.c
+++ b/source/blender/blenkernel/intern/appdir.c
@@ -109,6 +109,7 @@ static bool is_appdir_init = false;
void BKE_appdir_init(void)
{
#ifndef NDEBUG
+ BLI_assert(is_appdir_init == false);
is_appdir_init = true;
#endif
}
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index 47ab96bbc7e..3b54811657d 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -48,6 +48,7 @@
# include "BKE_blender_version.h"
# include "BKE_context.h"
+# include "BKE_appdir.h"
# include "BKE_global.h"
# include "BKE_image.h"
# include "BKE_lib_id.h"
@@ -56,9 +57,7 @@
# include "BKE_scene.h"
# include "BKE_sound.h"
-# ifdef WITH_FFMPEG
-# include "IMB_imbuf.h"
-# endif
+# include "IMB_imbuf.h"
# ifdef WITH_PYTHON
# include "BPY_extern_python.h"
@@ -1205,6 +1204,8 @@ static int arg_handle_playback_mode(int argc, const char **argv, void *UNUSED(da
{
/* not if -b was given first */
if (G.background == 0) {
+ BKE_appdir_init();
+ IMB_init();
# ifdef WITH_FFMPEG
/* Setup FFmpeg with current debug flags. */
IMB_ffmpeg_init();
More information about the Bf-blender-cvs
mailing list