Skip to content
Snippets Groups Projects
Commit 08bb2111 authored by Thomas Dinges's avatar Thomas Dinges
Browse files

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!
parent 9675e883
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment