diff options
author | IRIE Shinsuke <irieshinsuke@yahoo.co.jp> | 2014-02-11 12:06:21 +0400 |
---|---|---|
committer | IRIE Shinsuke <irieshinsuke@yahoo.co.jp> | 2014-02-11 12:06:21 +0400 |
commit | e2f9afbaabbdecc87c77261e40650da426baf168 (patch) | |
tree | 5cc11b5f91f48177da7b2154416698474e551f6e /release/scripts/startup/bl_ui/properties_material.py | |
parent | 2038eb10d069352cefa83abc6a6c6071807970ae (diff) |
Blender Internal: Modify material property "Cast Buffer Shadows" to affect ray shadows also, and rename it to "Cast Shadows".
This allows us to make materials that don't cast ray shadows.
Turning off this property can reduce the rendering time slightly.
Note: RNA path is changed to "use_cast_shadows" as well. The older
path "use_cast_buffer_shadows" still can be used as its alias, but
it will be removed after updating some addons.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D272
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_material.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 9e56c269b2b..ee3e90591e7 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -222,7 +222,7 @@ class MATERIAL_PT_pipeline(MaterialButtonsPanel, Panel): col.prop(mat, "use_cast_shadows_only", text="Cast Only") col.prop(mat, "shadow_cast_alpha", text="Casting Alpha") - col.prop(mat, "use_cast_buffer_shadows") + col.prop(mat, "use_cast_shadows") col.prop(mat, "use_cast_approximate") col.prop(mat, "pass_index") @@ -824,9 +824,9 @@ class MATERIAL_PT_shadow(MaterialButtonsPanel, Panel): col = split.column() if simple_material(base_mat): - col.prop(mat, "use_cast_buffer_shadows") + col.prop(mat, "use_cast_shadows") sub = col.column() - sub.active = mat.use_cast_buffer_shadows + sub.active = mat.use_cast_shadows sub.prop(mat, "shadow_buffer_bias", text="Buffer Bias") col.prop(mat, "use_ray_shadow_bias", text="Auto Ray Bias") sub = col.column() |