dont include the preview.blend in headless mode
This commit is contained in:
@@ -37,13 +37,16 @@ if(WITH_BLENDER)
|
||||
# blender only
|
||||
list(APPEND SRC
|
||||
startup.blend.c
|
||||
preview.blend.c
|
||||
bmonofont.ttf.c
|
||||
)
|
||||
|
||||
if(NOT WITH_HEADLESS)
|
||||
# blender UI only
|
||||
list(APPEND SRC
|
||||
# blends
|
||||
preview.blend.c
|
||||
|
||||
# images
|
||||
splash.png.c
|
||||
blenderbuttons.c
|
||||
|
||||
|
@@ -60,4 +60,8 @@ if(WITH_OPENMP)
|
||||
add_definitions(-DPARALLEL=1)
|
||||
endif()
|
||||
|
||||
if(WITH_HEADLESS)
|
||||
add_definitions(-DWITH_HEADLESS)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_editor_render "${SRC}" "${INC}" "${INC_SYS}")
|
||||
|
@@ -171,6 +171,7 @@ static Main *pr_main= NULL;
|
||||
|
||||
void ED_preview_init_dbase(void)
|
||||
{
|
||||
#ifndef WITH_HEADLESS
|
||||
BlendFileData *bfd;
|
||||
extern int datatoc_preview_blend_size;
|
||||
extern char datatoc_preview_blend[];
|
||||
@@ -184,6 +185,7 @@ void ED_preview_init_dbase(void)
|
||||
MEM_freeN(bfd);
|
||||
}
|
||||
G.fileflags= fileflags;
|
||||
#endif
|
||||
}
|
||||
|
||||
void ED_preview_free_dbase(void)
|
||||
|
Reference in New Issue
Block a user