From 57b7f405a4306d6c8b29fc6cdfc16ab9eb58279a Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 22 Oct 2012 14:04:44 +0000 Subject: Fix related to #32929: update list of available devices for cycles rendering while Blender is running, not only on load. It might help a case when Blender is started before the CUDA driver is fully initialized. --- intern/cycles/util/util_task.h | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/util') diff --git a/intern/cycles/util/util_task.h b/intern/cycles/util/util_task.h index 401a503f540..a2f284479c7 100644 --- a/intern/cycles/util/util_task.h +++ b/intern/cycles/util/util_task.h @@ -95,6 +95,7 @@ public: static void exit(); static int num_threads() { return threads.size(); } + static bool active() { return users != 0; } protected: friend class TaskPool; -- cgit v1.2.3