mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
prevent deadlock without threading support
This commit is contained in:
parent
53c77b0565
commit
71e44de612
@ -325,7 +325,7 @@ load_bind_anim(Loader *loader, const Filename &filename,
|
|||||||
anim_index = anim_preload->find_anim(basename);
|
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
|
// The animation is not present in the table, or allow_async is
|
||||||
// false. Therefore, perform an ordinary synchronous
|
// false. Therefore, perform an ordinary synchronous
|
||||||
// load-and-bind.
|
// load-and-bind.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user