Fix T91608: Cycles crash with tile size 0
This commit is contained in:
parent
4068b6b5a7
commit
e1a0983b3c
Notes:
blender-bot
2023-10-04 09:42:55 +02:00
Referenced by issue #91608, Cycles crashes if Tile Size is set to 0
|
@ -746,7 +746,7 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
|
|||
name="Tile Size",
|
||||
default=2048,
|
||||
description="",
|
||||
min=0, max=16384,
|
||||
min=8, max=16384,
|
||||
)
|
||||
|
||||
# Various fine-tuning debug flags
|
||||
|
|
|
@ -855,7 +855,7 @@ SessionParams BlenderSync::get_session_params(BL::RenderEngine &b_engine,
|
|||
|
||||
if (background) {
|
||||
params.use_auto_tile = RNA_boolean_get(&cscene, "use_auto_tile");
|
||||
params.tile_size = get_int(cscene, "tile_size");
|
||||
params.tile_size = max(get_int(cscene, "tile_size"), 8);
|
||||
}
|
||||
else {
|
||||
params.use_auto_tile = false;
|
||||
|
|
Loading…
Reference in New Issue