Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/version_update.py
| Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Lines | if bpy.data.version <= (2, 79, 2): | ||||
| if not cmat.is_property_set("displacement_method"): | if not cmat.is_property_set("displacement_method"): | ||||
| cmat.displacement_method = 'BUMP' | cmat.displacement_method = 'BUMP' | ||||
| foreach_cycles_node(displacement_principled_nodes) | foreach_cycles_node(displacement_principled_nodes) | ||||
| if bpy.data.version <= (2, 79, 3): | if bpy.data.version <= (2, 79, 3): | ||||
| # Switch to squared roughness convention | # Switch to squared roughness convention | ||||
| square_roughness_nodes_insert() | square_roughness_nodes_insert() | ||||
| for world in bpy.data.worlds: | |||||
| cworld = world.cycles | |||||
| # World MIS | |||||
| if not cworld.is_property_set("sampling_type"): | |||||
| if cworld.use_multiple_importance_sampling: | |||||
brecht: This should test `cworld.sample_as_light`?
We can use `cworld.get("sample_as_light", False)`… | |||||
| cworld.sampling_type = 'MANUAL' | |||||
| else: | |||||
| cworld.sampling_type = 'DISABLED' | |||||
brechtUnsubmitted Not Done Inline ActionsDISABLED -> OFF or NONE brecht: `DISABLED` -> `OFF` or `NONE` | |||||
| No newline at end of file | |||||
This should test cworld.sample_as_light?
We can use cworld.get("sample_as_light", False) instead, which still works if we don't register the property anymore.