Skip to content
Snippets Groups Projects
Commit 76a268b5 authored by Maurice Raybaud's avatar Maurice Raybaud
Browse files

By Constantin Rahn:

-POV file formatting improvement with UI option and function to handle all tabs/spaces indentation (big clean up)
-use of quote characters made more consistent.
parent 740f308b
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,22 @@ def register():
name="Enable Baking",
description="Enable povrays texture baking",
default=False)
Scene.pov_indentation_character = EnumProperty(
name="Indentation",
description="Select the indentation type",
items=(("0", "None", "No indentation"),
("1", "Tabs", "Indentation with tabs"),
("2", "Spaces", "Indentation with spaces")),
default="1")
Scene.pov_indentation_spaces = IntProperty(
name="Quantity of spaces",
description="The number of spaces for indentation",
min=1, max=10, default=3)
Scene.pov_comments_enable = BoolProperty(
name="Enable Comments",
description="Add comments to pov and ini files",
default=True)
# Real pov options
Scene.pov_max_trace_level = IntProperty(
......@@ -257,6 +273,9 @@ def unregister():
del Scene.pov_media_color # MR
del Scene.pov_baking_enable # MR
del Scene.pov_max_trace_level # MR
del Scene.pov_indentation_character # CR
del Scene.pov_indentation_spaces #CR
del Scene.pov_comments_enable #CR
del Mat.pov_irid_enable # MR
del Mat.pov_mirror_use_IOR # MR
del Mat.pov_mirror_metallic # MR
......
This diff is collapsed.
......@@ -300,7 +300,7 @@ class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel):
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")
col.prop(scene, "pov_radio_error_bound", text="Error Bound")
layout.prop(scene, "pov_radio_display_advanced")
......@@ -349,6 +349,7 @@ class RENDER_PT_povray_media(RenderButtonsPanel, bpy.types.Panel):
col = split.column()
col.prop(scene, "pov_media_samples", text="Samples")
col = split.column()
col.prop(scene, "pov_media_color", text="Color")
......@@ -369,6 +370,29 @@ class RENDER_PT_povray_baking(RenderButtonsPanel, bpy.types.Panel):
layout.active = scene.pov_baking_enable
class RENDER_PT_povray_formatting(RenderButtonsPanel, bpy.types.Panel):
bl_label = "Formatting files"
COMPAT_ENGINES = {'POVRAY_RENDER'}
def draw(self, context):
layout = self.layout
scene = context.scene
rd = scene.render
split = layout.split()
col = split.column()
col.prop(scene, "pov_indentation_character", text="Indent")
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")
class TEXTURE_PT_povray_tex_gamma(TextureButtonsPanel, bpy.types.Panel):
bl_label = "Image Gamma"
COMPAT_ENGINES = {'POVRAY_RENDER'}
......
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