Fix T92056: empty sampling pattern in Cycles when opening some existing files
This commit is contained in:
parent
a94343a8af
commit
db851ccd2a
Notes:
blender-bot
2023-02-13 23:16:02 +01:00
Referenced by issue #92056, Opening a Pre-Cycles-X file with "Progressive Multi-Jitter" selected results in that UI appearing blank upon file load in master
|
@ -86,8 +86,8 @@ enum_use_layer_samples = (
|
|||
)
|
||||
|
||||
enum_sampling_pattern = (
|
||||
('SOBOL', "Sobol", "Use Sobol random sampling pattern"),
|
||||
('PROGRESSIVE_MUTI_JITTER', "Progressive Multi-Jitter", "Use Progressive Multi-Jitter random sampling pattern"),
|
||||
('SOBOL', "Sobol", "Use Sobol random sampling pattern", 0),
|
||||
('PROGRESSIVE_MUTI_JITTER', "Progressive Multi-Jitter", "Use Progressive Multi-Jitter random sampling pattern", 1),
|
||||
)
|
||||
|
||||
enum_volume_sampling = (
|
||||
|
|
|
@ -235,7 +235,8 @@ def do_versions(self):
|
|||
cscene.use_denoising = False
|
||||
if not cscene.is_property_set("use_preview_denoising"):
|
||||
cscene.use_preview_denoising = False
|
||||
if not cscene.is_property_set("sampling_pattern"):
|
||||
if not cscene.is_property_set("sampling_pattern") or \
|
||||
cscene.get('sampling_pattern') >= 2:
|
||||
cscene.sampling_pattern = 'PROGRESSIVE_MUTI_JITTER'
|
||||
|
||||
# Removal of square samples.
|
||||
|
|
Loading…
Reference in New Issue