Moved some properties assignment out of the UI module and made alpha slider set transparency

This commit is contained in:
Maurice Raybaud
2010-12-16 15:18:03 +00:00
parent 93517f2fd1
commit 4e20bec0ec
2 changed files with 23 additions and 26 deletions

View File

@ -209,17 +209,17 @@ class MATERIAL_PT_povray_caustics(MaterialButtonsPanel, bpy.types.Panel):
col = split.column()
col.prop(mat, "pov_refraction_type")
if mat.pov_refraction_type=="0":
mat.pov_fake_caustics = False
mat.pov_photons_refraction = False
mat.pov_photons_reflection = True
elif mat.pov_refraction_type=="1":
mat.pov_fake_caustics = True
mat.pov_photons_refraction = False
## if mat.pov_refraction_type=="0":
## mat.pov_fake_caustics = False
## mat.pov_photons_refraction = False
## mat.pov_photons_reflection = True
if mat.pov_refraction_type=="1":
## mat.pov_fake_caustics = True
## mat.pov_photons_refraction = False
col.prop(mat, "pov_fake_caustics_power", slider=True)
elif mat.pov_refraction_type=="2":
mat.pov_fake_caustics = False
mat.pov_photons_refraction = True
## mat.pov_fake_caustics = False
## mat.pov_photons_refraction = True
col.prop(mat, "pov_photons_dispersion", slider=True)
col.prop(mat, "pov_photons_reflection")