Blender Internal: Fix texture influence panel not showing Displace/Warp sliders for volume materials.

This commit is contained in:
Shinsuke Irie 2014-05-23 01:41:27 +09:00
parent 97d047a3e9
commit 12e47d0536
1 changed files with 12 additions and 0 deletions

View File

@ -1090,6 +1090,8 @@ class TEXTURE_PT_influence(TextureSlotPanel, Panel):
factor_but(col, "use_map_hardness", "hardness_factor", "Hardness")
factor_but(col, "use_map_translucency", "translucency_factor", "Add")
elif idblock.type == 'VOLUME':
layout.label(text="Volume:")
split = layout.split()
col = split.column()
@ -1104,6 +1106,16 @@ class TEXTURE_PT_influence(TextureSlotPanel, Panel):
factor_but(col, "use_map_color_transmission", "transmission_color_factor", "Transmission Color")
factor_but(col, "use_map_color_reflection", "reflection_color_factor", "Reflection Color")
layout.label(text="Geometry:")
split = layout.split()
col = split.column()
factor_but(col, "use_map_warp", "warp_factor", "Warp")
col = split.column()
factor_but(col, "use_map_displacement", "displacement_factor", "Displace")
elif isinstance(idblock, Lamp):
split = layout.split()