Fix [#22345] ReleaseRenderOpt 2.5 Problem with rendering displacement map

Communicate the existing material displacement feature's strange dependence on both
'normal' and 'displacement' influences better. This will do until the improved displacement
is merged from render branch.
This commit is contained in:
Matt Ebb 2010-05-18 03:10:47 +00:00
parent 45444ceee3
commit 10f5be4fbf

@ -374,7 +374,8 @@ class TEXTURE_PT_influence(TextureSlotPanel):
factor_but(col, tex.map_raymir, "map_raymir", "raymir_factor", "Ray Mirror")
col.label(text="Geometry:")
factor_but(col, tex.map_normal, "map_normal", "normal_factor", "Normal")
# XXX replace 'or' when displacement is fixed to not rely on normal influence value.
factor_but(col, (tex.map_normal or tex.map_displacement), "map_normal", "normal_factor", "Normal")
factor_but(col, tex.map_warp, "map_warp", "warp_factor", "Warp")
factor_but(col, tex.map_displacement, "map_displacement", "displacement_factor", "Displace")