Fix User Interface for Volumetric
authorDalai Felinto <dfelinto@gmail.com>
Wed, 5 Jul 2017 17:23:57 +0000 (19:23 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 5 Jul 2017 17:23:57 +0000 (19:23 +0200)
release/scripts/startup/bl_ui/properties_render_layer.py

index 7df7e175b7914e29540e947baa727eba302ddd4e..450e3863965928d049a4babf1d3d8f892add82af 100644 (file)
@@ -239,15 +239,15 @@ class RENDERLAYER_PT_eevee_volumetric(RenderLayerButtonsPanel, Panel):
         layer_props = layer.engine_overrides['BLENDER_EEVEE']
 
         col = layout.column()
-        col.prop(props, "volumetric_start")
-        col.prop(props, "volumetric_end")
-        col.prop(props, "volumetric_samples")
-        col.prop(props, "volumetric_sample_distribution")
-        col.prop(props, "volumetric_lights")
-        col.prop(props, "volumetric_light_clamp")
-        col.prop(props, "volumetric_shadows")
-        col.prop(props, "volumetric_shadow_samples")
-        col.prop(props, "volumetric_colored_transmittance")
+        col.template_override_property(layer_props, scene_props, "volumetric_start")
+        col.template_override_property(layer_props, scene_props, "volumetric_end")
+        col.template_override_property(layer_props, scene_props, "volumetric_samples")
+        col.template_override_property(layer_props, scene_props, "volumetric_sample_distribution")
+        col.template_override_property(layer_props, scene_props, "volumetric_lights")
+        col.template_override_property(layer_props, scene_props, "volumetric_light_clamp")
+        col.template_override_property(layer_props, scene_props, "volumetric_shadows")
+        col.template_override_property(layer_props, scene_props, "volumetric_shadow_samples")
+        col.template_override_property(layer_props, scene_props, "volumetric_colored_transmittance")
 
 
 classes = (