Fix/workaround Eevee tests crashing with Mantaflow

Skip light cache baking until T73921 is fixed. This should be fixed properly
but being able to run the tests at all is important now.
This commit is contained in:
Brecht Van Lommel 2020-03-11 14:28:28 +01:00
parent 4bee1e1c8c
commit f3a33a9298
Notes: blender-bot 2023-02-14 05:50:03 +01:00
Referenced by issue #73921, Eevee volume render test memory leak in Mantaflow
1 changed files with 9 additions and 1 deletions

View File

@ -35,6 +35,13 @@ def setup():
# mat.use_screen_refraction = True
mat.use_sss_translucency = True
# Workaround for crash with Mantaflow (T73921).
use_light_cache_bake = True
for ob in bpy.data.objects:
for mod in ob.modifiers:
if mod.type == 'FLUID':
use_light_cache_bake = False
cubemap = None
grid = None
# Does not work in edit mode
@ -79,7 +86,8 @@ def setup():
eevee.gi_visibility_resolution = '16'
eevee.gi_irradiance_smoothing = 0
bpy.ops.scene.light_cache_bake()
if use_light_cache_bake:
bpy.ops.scene.light_cache_bake()
# When run from inside Blender, render and exit.