Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2011-03-03 01:09:18 +0300
committerThomas Dinges <blender@dingto.org>2011-03-03 01:09:18 +0300
commit08bb21115df740aec8ee1c9fdf26b29585540f72 (patch)
treec04a0bfaecf041c709208c353f1038dbd879f9ed /render_povray
parent9675e883a25da73141b4a169263d537d95c94795 (diff)
2.5 Povray Export UI:
* Code cleaunp Notes: *Why do we have some empty panels with no actual content? *Why is split used when there is only 1 column? The Povray script has always been some kind of example for other exporters, the UI code need some more cleanup for sure!
Diffstat (limited to 'render_povray')
-rw-r--r--render_povray/ui.py39
1 files changed, 15 insertions, 24 deletions
diff --git a/render_povray/ui.py b/render_povray/ui.py
index 2857dc28..7f5de936 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -205,11 +205,9 @@ class RENDER_PT_povray_export_settings(RenderButtonsPanel, bpy.types.Panel):
col = split.column()
if scene.pov_indentation_character == "2":
col.prop(scene, "pov_indentation_spaces", text="Spaces")
- split = layout.split()
- col = split.column()
- col.prop(scene, "pov_comments_enable", text="Comments")
- col = split.column()
- col.prop(scene, "pov_list_lf_enable", text="Line breaks in lists")
+ row = layout.row()
+ row.prop(scene, "pov_comments_enable", text="Comments")
+ row.prop(scene, "pov_list_lf_enable", text="Line breaks in lists")
class RENDER_PT_povray_render_settings(RenderButtonsPanel, bpy.types.Panel):
@@ -261,11 +259,9 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel):
layout.active = scene.pov_antialias_enable
- split = layout.split()
- col = split.column()
- col.prop(scene, "pov_antialias_method", text="")
- col = split.column()
- col.prop(scene, "pov_jitter_enable", text="Jitter")
+ row = layout.row()
+ row.prop(scene, "pov_antialias_method", text="")
+ row.prop(scene, "pov_jitter_enable", text="Jitter")
split = layout.split()
col = split.column()
@@ -277,11 +273,9 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel):
else:
sub.enabled = False
- split = layout.split()
- col = split.column()
- col.prop(scene, "pov_antialias_threshold", text="AA Threshold")
- col = split.column()
- col.prop(scene, "pov_antialias_gamma", text="AA Gamma")
+ row = layout.row()
+ row.prop(scene, "pov_antialias_threshold", text="AA Threshold")
+ row.prop(scene, "pov_antialias_gamma", text="AA Gamma")
class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel):
@@ -306,8 +300,8 @@ class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel):
col = split.column()
col.prop(scene, "pov_radio_count", text="Rays")
col.prop(scene, "pov_radio_recursion_limit", text="Recursions")
- col = split.column()
- col.prop(scene, "pov_radio_error_bound", text="Error Bound")
+
+ split.prop(scene, "pov_radio_error_bound", text="Error Bound")
layout.prop(scene, "pov_radio_display_advanced")
@@ -333,8 +327,7 @@ class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel):
col.prop(scene, "pov_radio_media")
col.prop(scene, "pov_radio_normal")
- col = split.column()
- col.prop(scene, "pov_radio_always_sample")
+ split.prop(scene, "pov_radio_always_sample")
class RENDER_PT_povray_media(RenderButtonsPanel, bpy.types.Panel):
@@ -353,12 +346,10 @@ class RENDER_PT_povray_media(RenderButtonsPanel, bpy.types.Panel):
rd = scene.render
layout.active = scene.pov_media_enable
- split = layout.split()
- col = split.column()
- col.prop(scene, "pov_media_samples", text="Samples")
- col = split.column()
- col.prop(scene, "pov_media_color", text="")
+ row = layout.row()
+ row.prop(scene, "pov_media_samples", text="Samples")
+ row.prop(scene, "pov_media_color", text="")
##class RENDER_PT_povray_baking(RenderButtonsPanel, bpy.types.Panel):
## bl_label = "Baking"