diff options
-rw-r--r-- | intern/cycles/blender/addon/properties.py | 6 | ||||
-rw-r--r-- | intern/cycles/blender/addon/version_update.py | 16 | ||||
-rw-r--r-- | source/blender/blenkernel/BKE_blender.h | 2 |
3 files changed, 20 insertions, 4 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py index f22ac25c832..81dafb82d51 100644 --- a/intern/cycles/blender/addon/properties.py +++ b/intern/cycles/blender/addon/properties.py @@ -796,20 +796,20 @@ class CyclesWorldSettings(bpy.types.PropertyGroup): name="Multiple Importance Sample", description="Use multiple importance sampling for the environment, " "enabling for non-solid colors is recommended", - default=False, + default=True, ) cls.sample_map_resolution = IntProperty( name="Map Resolution", description="Importance map size is resolution x resolution; " "higher values potentially produce less noise, at the cost of memory and speed", min=4, max=8192, - default=256, + default=1024, ) cls.samples = IntProperty( name="Samples", description="Number of light samples to render for each AA sample", min=1, max=10000, - default=4, + default=1, ) cls.max_bounces = IntProperty( name="Max Bounces", diff --git a/intern/cycles/blender/addon/version_update.py b/intern/cycles/blender/addon/version_update.py index 17b86261383..0d34eb295df 100644 --- a/intern/cycles/blender/addon/version_update.py +++ b/intern/cycles/blender/addon/version_update.py @@ -254,3 +254,19 @@ def do_versions(self): # Volume Sampling if not cmat.is_property_set("volume_sampling"): cmat.volume_sampling = 'DISTANCE' + + if bpy.data.version <= (2, 76, 9): + for world in bpy.data.worlds: + cworld = world.cycles + + # World MIS + if not cworld.is_property_set("sample_as_light"): + cworld.sample_as_light = False + + # World MIS Samples + if not cworld.is_property_set("samples"): + cworld.samples = 4 + + # World MIS Resolution + if not cworld.is_property_set("sample_map_resolution"): + cworld.sample_map_resolution = 256 diff --git a/source/blender/blenkernel/BKE_blender.h b/source/blender/blenkernel/BKE_blender.h index 965affa8556..8d8589cd9ed 100644 --- a/source/blender/blenkernel/BKE_blender.h +++ b/source/blender/blenkernel/BKE_blender.h @@ -42,7 +42,7 @@ extern "C" { * and keep comment above the defines. * Use STRINGIFY() rather than defining with quotes */ #define BLENDER_VERSION 276 -#define BLENDER_SUBVERSION 9 +#define BLENDER_SUBVERSION 10 /* Several breakages with 270, e.g. constraint deg vs rad */ #define BLENDER_MINVERSION 270 #define BLENDER_MINSUBVERSION 6 |