Skip to content
Snippets Groups Projects
Commit 50e45d93 authored by Campbell Barton's avatar Campbell Barton
Browse files

povray script now passes the pep8 checker.

noticed some strange code, added XXX FIXME.
parent ca638c3d
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
# #
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
bl_info = { bl_info = {
"name": "POV-Ray 3.7", "name": "POV-Ray 3.7",
"author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, Constantin Rahn", "author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, Constantin Rahn",
...@@ -43,6 +45,7 @@ else: ...@@ -43,6 +45,7 @@ else:
from render_povray import ui from render_povray import ui
from render_povray import render from render_povray import render
def register(): def register():
Scene = bpy.types.Scene Scene = bpy.types.Scene
...@@ -80,7 +83,7 @@ def register(): ...@@ -80,7 +83,7 @@ def register():
name="Quantity of spaces", name="Quantity of spaces",
description="The number of spaces for indentation", description="The number of spaces for indentation",
min=1, max=10, default=3) min=1, max=10, default=3)
Scene.pov_comments_enable = BoolProperty( Scene.pov_comments_enable = BoolProperty(
name="Enable Comments", name="Enable Comments",
description="Add comments to pov file", description="Add comments to pov file",
...@@ -90,26 +93,26 @@ def register(): ...@@ -90,26 +93,26 @@ def register():
Scene.pov_command_line_switches = StringProperty(name="Command Line Switches", Scene.pov_command_line_switches = StringProperty(name="Command Line Switches",
description="Command line switches consist of a + (plus) or - (minus) sign, followed by one or more alphabetic characters and possibly a numeric value.", description="Command line switches consist of a + (plus) or - (minus) sign, followed by one or more alphabetic characters and possibly a numeric value.",
default="", maxlen=500) default="", maxlen=500)
Scene.pov_antialias_enable = BoolProperty( Scene.pov_antialias_enable = BoolProperty(
name="Anti-Alias", description="Enable Anti-Aliasing", name="Anti-Alias", description="Enable Anti-Aliasing",
default=True) default=True)
Scene.pov_antialias_method = EnumProperty( Scene.pov_antialias_method = EnumProperty(
name="Method", name="Method",
description="AA-sampling method. Type 1 is an adaptive, non-recursive, super-sampling method. Type 2 is an adaptive and recursive super-sampling method.", description="AA-sampling method. Type 1 is an adaptive, non-recursive, super-sampling method. Type 2 is an adaptive and recursive super-sampling method.",
items=(("0", "non-recursive AA", "Type 1 Sampling in POV-Ray"), items=(("0", "non-recursive AA", "Type 1 Sampling in POV-Ray"),
("1", "recursive AA", "Type 2 Sampling in POV-Ray")), ("1", "recursive AA", "Type 2 Sampling in POV-Ray")),
default="1") default="1")
Scene.pov_antialias_depth = IntProperty( Scene.pov_antialias_depth = IntProperty(
name="Antialias Depth", description="Depth of pixel for sampling", name="Antialias Depth", description="Depth of pixel for sampling",
min=1, max=9, default=3) min=1, max=9, default=3)
Scene.pov_antialias_threshold = FloatProperty( Scene.pov_antialias_threshold = FloatProperty(
name="Antialias Threshold", description="Tolerance for sub-pixels", name="Antialias Threshold", description="Tolerance for sub-pixels",
min=0.0, max=1.0, soft_min=0.05, soft_max=0.5, default=0.1) min=0.0, max=1.0, soft_min=0.05, soft_max=0.5, default=0.1)
Scene.pov_jitter_enable = BoolProperty( Scene.pov_jitter_enable = BoolProperty(
name="Jitter", description="Enable Jittering. Adds noise into the sampling process (it should be avoided to use jitter in animation).", name="Jitter", description="Enable Jittering. Adds noise into the sampling process (it should be avoided to use jitter in animation).",
default=True) default=True)
...@@ -117,15 +120,15 @@ def register(): ...@@ -117,15 +120,15 @@ def register():
Scene.pov_jitter_amount = FloatProperty( Scene.pov_jitter_amount = FloatProperty(
name="Jitter Amount", description="Amount of jittering.", name="Jitter Amount", description="Amount of jittering.",
min=0.0, max=1.0, soft_min=0.01, soft_max=1.0, default=1.0) min=0.0, max=1.0, soft_min=0.01, soft_max=1.0, default=1.0)
Scene.pov_antialias_gamma = FloatProperty( Scene.pov_antialias_gamma = FloatProperty(
name="Antialias Gamma", description="POV-Ray compares gamma-adjusted values for super sampling. Antialias Gamma sets the Gamma before comparison.", name="Antialias Gamma", description="POV-Ray compares gamma-adjusted values for super sampling. Antialias Gamma sets the Gamma before comparison.",
min=0.0, max=5.0, soft_min=0.01, soft_max=2.5, default=2.5) min=0.0, max=5.0, soft_min=0.01, soft_max=2.5, default=2.5)
Scene.pov_max_trace_level = IntProperty( Scene.pov_max_trace_level = IntProperty(
name="Max Trace Level", description="Number of reflections/refractions allowed on ray path", name="Max Trace Level", description="Number of reflections/refractions allowed on ray path",
min=1, max=256, default=5) min=1, max=256, default=5)
Scene.pov_radio_adc_bailout = FloatProperty( Scene.pov_radio_adc_bailout = FloatProperty(
name="ADC Bailout", description="The adc_bailout for radiosity rays. Use adc_bailout = 0.01 / brightest_ambient_object for good results", name="ADC Bailout", description="The adc_bailout for radiosity rays. Use adc_bailout = 0.01 / brightest_ambient_object for good results",
min=0.0, max=1000.0, soft_min=0.0, soft_max=1.0, default=0.01, precision=3) min=0.0, max=1000.0, soft_min=0.0, soft_max=1.0, default=0.01, precision=3)
...@@ -189,7 +192,7 @@ def register(): ...@@ -189,7 +192,7 @@ def register():
Mat.pov_irid_enable = BoolProperty( Mat.pov_irid_enable = BoolProperty(
name="Enable Iridescence", name="Enable Iridescence",
description="Newton's thin film interference (like an oil slick on a puddle of water or the rainbow hues of a soap bubble.)", description="Newton's thin film interference (like an oil slick on a puddle of water or the rainbow hues of a soap bubble.)",
default=False) default=False)
Mat.pov_mirror_use_IOR = BoolProperty( Mat.pov_mirror_use_IOR = BoolProperty(
name="Correct Reflection", name="Correct Reflection",
...@@ -252,17 +255,17 @@ def register(): ...@@ -252,17 +255,17 @@ def register():
default=False) default=False)
Mat.pov_refraction_type = EnumProperty( Mat.pov_refraction_type = EnumProperty(
items=[("0","None","use only reflective caustics"), items=[("0", "None", "use only reflective caustics"),
("1","Fake Caustics","use fake caustics"), ("1", "Fake Caustics", "use fake caustics"),
("2","Photons Caustics","use photons for refractive caustics"), ("2", "Photons Caustics", "use photons for refractive caustics"),
], ],
name="Refractive", name="Refractive",
description="use fake caustics (fast) or true photons for refractive Caustics", description="use fake caustics (fast) or true photons for refractive Caustics",
default="1")#ui.py has to be loaded before render.py with this. default="1") # ui.py has to be loaded before render.py with this.
######################################################################################## ########################################################################################
#Custom texture gamma #Custom texture gamma
Tex = bpy.types.Texture Tex = bpy.types.Texture
Tex.pov_tex_gamma_enable = BoolProperty( Tex.pov_tex_gamma_enable = BoolProperty(
name="Enable custom texture gamma", name="Enable custom texture gamma",
description="Notify some custom gamma for which texture has been precorrected without the file format carrying it and only if it differs from your OS expected standard (see pov doc)", description="Notify some custom gamma for which texture has been precorrected without the file format carrying it and only if it differs from your OS expected standard (see pov doc)",
...@@ -278,15 +281,16 @@ def register(): ...@@ -278,15 +281,16 @@ def register():
name="Radiosity Importance", name="Radiosity Importance",
description="Priority value relative to other objects for sampling radiosity rays. Increase to get more radiosity rays at comparatively small yet bright objects", description="Priority value relative to other objects for sampling radiosity rays. Increase to get more radiosity rays at comparatively small yet bright objects",
min=0.01, max=1.00, default=1.00) min=0.01, max=1.00, default=1.00)
######################################EndMR##################################### ######################################EndMR#####################################
def unregister(): def unregister():
import bpy import bpy
Scene = bpy.types.Scene Scene = bpy.types.Scene
Mat = bpy.types.Material # MR Mat = bpy.types.Material # MR
Tex = bpy.types.Texture # MR Tex = bpy.types.Texture # MR
Obj = bpy.types.Object # MR Obj = bpy.types.Object # MR
del Scene.pov_radio_enable del Scene.pov_radio_enable
del Scene.pov_radio_display_advanced del Scene.pov_radio_display_advanced
del Scene.pov_radio_adc_bailout del Scene.pov_radio_adc_bailout
...@@ -301,15 +305,15 @@ def unregister(): ...@@ -301,15 +305,15 @@ def unregister():
del Scene.pov_radio_nearest_count del Scene.pov_radio_nearest_count
del Scene.pov_radio_normal del Scene.pov_radio_normal
del Scene.pov_radio_recursion_limit del Scene.pov_radio_recursion_limit
del Scene.pov_radio_pretrace_start # MR del Scene.pov_radio_pretrace_start # MR
del Scene.pov_radio_pretrace_end # MR del Scene.pov_radio_pretrace_end # MR
del Scene.pov_media_enable # MR del Scene.pov_media_enable # MR
del Scene.pov_media_samples # MR del Scene.pov_media_samples # MR
del Scene.pov_media_color # MR del Scene.pov_media_color # MR
del Scene.pov_baking_enable # MR del Scene.pov_baking_enable # MR
del Scene.pov_max_trace_level # MR del Scene.pov_max_trace_level # MR
del Scene.pov_antialias_enable # CR del Scene.pov_antialias_enable # CR
del Scene.pov_antialias_method # CR del Scene.pov_antialias_method # CR
del Scene.pov_antialias_depth # CR del Scene.pov_antialias_depth # CR
del Scene.pov_antialias_threshold # CR del Scene.pov_antialias_threshold # CR
del Scene.pov_antialias_gamma # CR del Scene.pov_antialias_gamma # CR
...@@ -319,23 +323,23 @@ def unregister(): ...@@ -319,23 +323,23 @@ def unregister():
del Scene.pov_indentation_character # CR del Scene.pov_indentation_character # CR
del Scene.pov_indentation_spaces # CR del Scene.pov_indentation_spaces # CR
del Scene.pov_comments_enable # CR del Scene.pov_comments_enable # CR
del Mat.pov_irid_enable # MR del Mat.pov_irid_enable # MR
del Mat.pov_mirror_use_IOR # MR del Mat.pov_mirror_use_IOR # MR
del Mat.pov_mirror_metallic # MR del Mat.pov_mirror_metallic # MR
del Mat.pov_conserve_energy # MR del Mat.pov_conserve_energy # MR
del Mat.pov_irid_amount # MR del Mat.pov_irid_amount # MR
del Mat.pov_irid_thickness # MR del Mat.pov_irid_thickness # MR
del Mat.pov_irid_turbulence # MR del Mat.pov_irid_turbulence # MR
del Mat.pov_caustics_enable # MR del Mat.pov_caustics_enable # MR
del Mat.pov_fake_caustics # MR del Mat.pov_fake_caustics # MR
del Mat.pov_fake_caustics_power # MR del Mat.pov_fake_caustics_power # MR
del Mat.pov_photons_refraction # MR del Mat.pov_photons_refraction # MR
del Mat.pov_photons_dispersion # MR del Mat.pov_photons_dispersion # MR
del Mat.pov_photons_reflection # MR del Mat.pov_photons_reflection # MR
del Mat.pov_refraction_type # MR del Mat.pov_refraction_type # MR
del Tex.pov_tex_gamma_enable # MR del Tex.pov_tex_gamma_enable # MR
del Tex.pov_tex_gamma_value # MR del Tex.pov_tex_gamma_value # MR
del Obj.pov_importance_value # MR del Obj.pov_importance_value # MR
if __name__ == "__main__": if __name__ == "__main__":
register() register()
This diff is collapsed.
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
# #
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy import bpy
# Use some of the existing buttons. # Use some of the existing buttons.
...@@ -82,7 +84,6 @@ for member in dir(properties_data_lamp): ...@@ -82,7 +84,6 @@ for member in dir(properties_data_lamp):
del properties_data_lamp del properties_data_lamp
class RenderButtonsPanel(): class RenderButtonsPanel():
bl_space_type = 'PROPERTIES' bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW' bl_region_type = 'WINDOW'
...@@ -94,6 +95,7 @@ class RenderButtonsPanel(): ...@@ -94,6 +95,7 @@ class RenderButtonsPanel():
rd = context.scene.render rd = context.scene.render
return (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES) return (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
class MaterialButtonsPanel(): class MaterialButtonsPanel():
bl_space_type = 'PROPERTIES' bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW' bl_region_type = 'WINDOW'
...@@ -106,6 +108,7 @@ class MaterialButtonsPanel(): ...@@ -106,6 +108,7 @@ class MaterialButtonsPanel():
rd = context.scene.render rd = context.scene.render
return mat and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES) return mat and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
class TextureButtonsPanel(): class TextureButtonsPanel():
bl_space_type = 'PROPERTIES' bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW' bl_region_type = 'WINDOW'
...@@ -118,6 +121,7 @@ class TextureButtonsPanel(): ...@@ -118,6 +121,7 @@ class TextureButtonsPanel():
rd = context.scene.render rd = context.scene.render
return tex and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES) return tex and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
class ObjectButtonsPanel(): class ObjectButtonsPanel():
bl_space_type = 'PROPERTIES' bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW' bl_region_type = 'WINDOW'
...@@ -129,7 +133,10 @@ class ObjectButtonsPanel(): ...@@ -129,7 +133,10 @@ class ObjectButtonsPanel():
obj = context.object obj = context.object
rd = context.scene.render rd = context.scene.render
return obj and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES) return obj and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
########################################MR###################################### ########################################MR######################################
class MATERIAL_PT_povray_mirrorIOR(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_povray_mirrorIOR(MaterialButtonsPanel, bpy.types.Panel):
bl_label = "IOR Mirror" bl_label = "IOR Mirror"
COMPAT_ENGINES = {'POVRAY_RENDER'} COMPAT_ENGINES = {'POVRAY_RENDER'}
...@@ -153,8 +160,8 @@ class MATERIAL_PT_povray_mirrorIOR(MaterialButtonsPanel, bpy.types.Panel): ...@@ -153,8 +160,8 @@ class MATERIAL_PT_povray_mirrorIOR(MaterialButtonsPanel, bpy.types.Panel):
row.label(text="The current Raytrace ") row.label(text="The current Raytrace ")
row = col.row() row = col.row()
row.alignment = 'CENTER' row.alignment = 'CENTER'
row.label(text="Transparency IOR is: "+str(mat.raytrace_transparency.ior)) row.label(text="Transparency IOR is: " + str(mat.raytrace_transparency.ior))
class MATERIAL_PT_povray_metallic(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_povray_metallic(MaterialButtonsPanel, bpy.types.Panel):
bl_label = "metallic Mirror" bl_label = "metallic Mirror"
...@@ -171,6 +178,7 @@ class MATERIAL_PT_povray_metallic(MaterialButtonsPanel, bpy.types.Panel): ...@@ -171,6 +178,7 @@ class MATERIAL_PT_povray_metallic(MaterialButtonsPanel, bpy.types.Panel):
mat = context.material mat = context.material
layout.active = mat.pov_mirror_metallic layout.active = mat.pov_mirror_metallic
class MATERIAL_PT_povray_conserve_energy(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_povray_conserve_energy(MaterialButtonsPanel, bpy.types.Panel):
bl_label = "conserve energy" bl_label = "conserve energy"
COMPAT_ENGINES = {'POVRAY_RENDER'} COMPAT_ENGINES = {'POVRAY_RENDER'}
...@@ -186,6 +194,7 @@ class MATERIAL_PT_povray_conserve_energy(MaterialButtonsPanel, bpy.types.Panel): ...@@ -186,6 +194,7 @@ class MATERIAL_PT_povray_conserve_energy(MaterialButtonsPanel, bpy.types.Panel):
mat = context.material mat = context.material
layout.active = mat.pov_conserve_energy layout.active = mat.pov_conserve_energy
class MATERIAL_PT_povray_iridescence(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_povray_iridescence(MaterialButtonsPanel, bpy.types.Panel):
bl_label = "iridescence" bl_label = "iridescence"
COMPAT_ENGINES = {'POVRAY_RENDER'} COMPAT_ENGINES = {'POVRAY_RENDER'}
...@@ -200,7 +209,7 @@ class MATERIAL_PT_povray_iridescence(MaterialButtonsPanel, bpy.types.Panel): ...@@ -200,7 +209,7 @@ class MATERIAL_PT_povray_iridescence(MaterialButtonsPanel, bpy.types.Panel):
mat = context.material mat = context.material
layout.active = mat.pov_irid_enable layout.active = mat.pov_irid_enable
if mat.pov_irid_enable: if mat.pov_irid_enable:
split = layout.split() split = layout.split()
...@@ -214,14 +223,13 @@ class MATERIAL_PT_povray_caustics(MaterialButtonsPanel, bpy.types.Panel): ...@@ -214,14 +223,13 @@ class MATERIAL_PT_povray_caustics(MaterialButtonsPanel, bpy.types.Panel):
bl_label = "Caustics" bl_label = "Caustics"
COMPAT_ENGINES = {'POVRAY_RENDER'} COMPAT_ENGINES = {'POVRAY_RENDER'}
def draw_header(self, context): def draw_header(self, context):
mat = context.material mat = context.material
self.layout.prop(mat, "pov_caustics_enable", text="") self.layout.prop(mat, "pov_caustics_enable", text="")
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
mat = context.material mat = context.material
...@@ -236,17 +244,15 @@ class MATERIAL_PT_povray_caustics(MaterialButtonsPanel, bpy.types.Panel): ...@@ -236,17 +244,15 @@ class MATERIAL_PT_povray_caustics(MaterialButtonsPanel, bpy.types.Panel):
## mat.pov_fake_caustics = False ## mat.pov_fake_caustics = False
## mat.pov_photons_refraction = False ## mat.pov_photons_refraction = False
## mat.pov_photons_reflection = True ## mat.pov_photons_reflection = True
if mat.pov_refraction_type=="1": if mat.pov_refraction_type == "1":
## mat.pov_fake_caustics = True ## mat.pov_fake_caustics = True
## mat.pov_photons_refraction = False ## mat.pov_photons_refraction = False
col.prop(mat, "pov_fake_caustics_power", slider=True) col.prop(mat, "pov_fake_caustics_power", slider=True)
elif mat.pov_refraction_type=="2": elif mat.pov_refraction_type == "2":
## mat.pov_fake_caustics = False ## mat.pov_fake_caustics = False
## mat.pov_photons_refraction = True ## mat.pov_photons_refraction = True
col.prop(mat, "pov_photons_dispersion", slider=True) col.prop(mat, "pov_photons_dispersion", slider=True)
col.prop(mat, "pov_photons_reflection") col.prop(mat, "pov_photons_reflection")
## col.prop(mat, "pov_fake_caustics") ## col.prop(mat, "pov_fake_caustics")
## if mat.pov_fake_caustics: ## if mat.pov_fake_caustics:
...@@ -261,6 +267,8 @@ class MATERIAL_PT_povray_caustics(MaterialButtonsPanel, bpy.types.Panel): ...@@ -261,6 +267,8 @@ class MATERIAL_PT_povray_caustics(MaterialButtonsPanel, bpy.types.Panel):
## col.prop(mat, "pov_photons_reflection") ## col.prop(mat, "pov_photons_reflection")
####TODO : MAKE THIS A real RADIO BUTTON (using EnumProperty?) ####TODO : MAKE THIS A real RADIO BUTTON (using EnumProperty?)
######################################EndMR##################################### ######################################EndMR#####################################
class RENDER_PT_povray_global_settings(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_povray_global_settings(RenderButtonsPanel, bpy.types.Panel):
bl_label = "Global Settings" bl_label = "Global Settings"
COMPAT_ENGINES = {'POVRAY_RENDER'} COMPAT_ENGINES = {'POVRAY_RENDER'}
...@@ -276,12 +284,13 @@ class RENDER_PT_povray_global_settings(RenderButtonsPanel, bpy.types.Panel): ...@@ -276,12 +284,13 @@ class RENDER_PT_povray_global_settings(RenderButtonsPanel, bpy.types.Panel):
col = split.column() col = split.column()
col.label(text="Command line switches:") col.label(text="Command line switches:")
col.prop(scene, "pov_command_line_switches", text="" ) col.prop(scene, "pov_command_line_switches", text="")
split = layout.split() split = layout.split()
col = split.column() col = split.column()
col.prop(scene, "pov_max_trace_level", text="Ray Depth") col.prop(scene, "pov_max_trace_level", text="Ray Depth")
col = split.column() col = split.column()
class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel):
bl_label = "Anti-Aliasing" bl_label = "Anti-Aliasing"
COMPAT_ENGINES = {'POVRAY_RENDER'} COMPAT_ENGINES = {'POVRAY_RENDER'}
...@@ -304,7 +313,7 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel): ...@@ -304,7 +313,7 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel):
col.prop(scene, "pov_antialias_method", text="") col.prop(scene, "pov_antialias_method", text="")
col = split.column() col = split.column()
col.prop(scene, "pov_jitter_enable", text="Jitter") col.prop(scene, "pov_jitter_enable", text="Jitter")
split = layout.split() split = layout.split()
col = split.column() col = split.column()
col.prop(scene, "pov_antialias_depth", text="AA Depth") col.prop(scene, "pov_antialias_depth", text="AA Depth")
...@@ -319,9 +328,9 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel): ...@@ -319,9 +328,9 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel):
col = split.column() col = split.column()
col.prop(scene, "pov_antialias_threshold", text="AA Threshold") col.prop(scene, "pov_antialias_threshold", text="AA Threshold")
col = split.column() col = split.column()
col.prop(scene, "pov_antialias_gamma", text="AA Gamma") col.prop(scene, "pov_antialias_gamma", text="AA Gamma")
class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel):
bl_label = "Radiosity" bl_label = "Radiosity"
COMPAT_ENGINES = {'POVRAY_RENDER'} COMPAT_ENGINES = {'POVRAY_RENDER'}
...@@ -374,6 +383,7 @@ class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel): ...@@ -374,6 +383,7 @@ class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel):
col = split.column() col = split.column()
col.prop(scene, "pov_radio_always_sample") col.prop(scene, "pov_radio_always_sample")
class RENDER_PT_povray_media(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_povray_media(RenderButtonsPanel, bpy.types.Panel):
bl_label = "Atmosphere Media" bl_label = "Atmosphere Media"
COMPAT_ENGINES = {'POVRAY_RENDER'} COMPAT_ENGINES = {'POVRAY_RENDER'}
...@@ -431,7 +441,7 @@ class RENDER_PT_povray_formatting(RenderButtonsPanel, bpy.types.Panel): ...@@ -431,7 +441,7 @@ class RENDER_PT_povray_formatting(RenderButtonsPanel, bpy.types.Panel):
col = split.column() col = split.column()
col.prop(scene, "pov_indentation_character", text="Indent") col.prop(scene, "pov_indentation_character", text="Indent")
col = split.column() col = split.column()
if scene.pov_indentation_character=="2": if scene.pov_indentation_character == "2":
col.prop(scene, "pov_indentation_spaces", text="Spaces") col.prop(scene, "pov_indentation_spaces", text="Spaces")
split = layout.split() split = layout.split()
col = split.column() col = split.column()
...@@ -458,6 +468,7 @@ class TEXTURE_PT_povray_tex_gamma(TextureButtonsPanel, bpy.types.Panel): ...@@ -458,6 +468,7 @@ class TEXTURE_PT_povray_tex_gamma(TextureButtonsPanel, bpy.types.Panel):
col = split.column() col = split.column()
col.prop(tex, "pov_tex_gamma_value", text="Gamma Value") col.prop(tex, "pov_tex_gamma_value", text="Gamma Value")
class OBJECT_PT_povray_obj_importance(ObjectButtonsPanel, bpy.types.Panel): class OBJECT_PT_povray_obj_importance(ObjectButtonsPanel, bpy.types.Panel):
bl_label = "POV-Ray" bl_label = "POV-Ray"
COMPAT_ENGINES = {'POVRAY_RENDER'} COMPAT_ENGINES = {'POVRAY_RENDER'}
...@@ -472,4 +483,3 @@ class OBJECT_PT_povray_obj_importance(ObjectButtonsPanel, bpy.types.Panel): ...@@ -472,4 +483,3 @@ class OBJECT_PT_povray_obj_importance(ObjectButtonsPanel, bpy.types.Panel):
col = split.column() col = split.column()
col.prop(obj, "pov_importance_value", text="Importance") col.prop(obj, "pov_importance_value", text="Importance")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment