From f3224bbc0f6d78a39557ce61a932c2f334fdee86 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 11 Sep 2020 20:35:46 +1000 Subject: OpenSubdiv: initialize in background-mode Previously this was initialized with OpenGL, however this uses a more proper/complete implementation it is not only for OpenGL. --- source/blender/windowmanager/intern/wm_init_exit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_init_exit.c') diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index b85bf8cb323..5a22e990218 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -190,8 +190,6 @@ void WM_init_opengl(void) GPU_pass_cache_init(); - BKE_subdiv_init(); - opengl_is_init = true; } @@ -323,6 +321,8 @@ void WM_init(bContext *C, int argc, const char **argv) UI_init(); } + BKE_subdiv_init(); + ED_spacemacros_init(); /* note: there is a bug where python needs initializing before loading the -- cgit v1.2.3