From 71e44de61254d68d8b74503a28b028303e74adc3 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 18 Dec 2008 23:17:49 +0000 Subject: [PATCH] prevent deadlock without threading support --- panda/src/chan/partBundle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/chan/partBundle.cxx b/panda/src/chan/partBundle.cxx index 65d36e8238..b6f9cb6135 100644 --- a/panda/src/chan/partBundle.cxx +++ b/panda/src/chan/partBundle.cxx @@ -325,7 +325,7 @@ load_bind_anim(Loader *loader, const Filename &filename, anim_index = anim_preload->find_anim(basename); } - if (anim_index < 0 || !allow_async) { + if (anim_index < 0 || !allow_async || !Thread::is_threading_supported()) { // The animation is not present in the table, or allow_async is // false. Therefore, perform an ordinary synchronous // load-and-bind.