* Some cleanup for recent preset commit.
authorThomas Dinges <blender@dingto.org>
Sat, 21 Nov 2009 22:54:02 +0000 (22:54 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 21 Nov 2009 22:54:02 +0000 (22:54 +0000)
* Minor align fix for Frame Rate Buttons.

release/scripts/op/preset_render.py [moved from release/scripts/op/render.py with 98% similarity]
release/scripts/ui/properties_render.py

similarity index 98%
rename from release/scripts/op/render.py
rename to release/scripts/op/preset_render.py
index 5a63e3e8c8b872890a5cfdd36f29574c95d0396e..0077430eb3ba91b9f5183ecb05169630c579f85d 100644 (file)
@@ -20,7 +20,7 @@ import bpy
 import os
 
 class AddPreset(bpy.types.Operator):
-    '''Add a torus mesh.'''
+    '''Add a Render Preset'''
     bl_idname = "render.preset_add"
     bl_label = "Add Render Preset"
     
@@ -44,7 +44,6 @@ class AddPreset(bpy.types.Operator):
         return name.lower()
 
     def execute(self, context):
-        
         filename = self._as_filename(self.properties.name) + ".py"
         
         target_path = os.path.join(os.path.dirname(__file__), os.path.pardir, "presets", "render", filename)
index f90d62ee3978747fe1d3ee431883858737a4d513..cc19a068f6035bfd56dba69676784b43a8d2fc01 100644 (file)
@@ -481,6 +481,12 @@ class RENDER_PT_dimensions(RenderButtonsPanel):
         scene = context.scene
         rd = scene.render_data
         wide_ui = context.region.width > narrowui
+        
+        row = layout.row().split()
+        sub = row.row(align=True).split(percentage=0.75)
+        sub.itemM("RENDER_MT_presets", text="Presets")
+        sub.itemO("render.preset_add", text="Add")
+        row.itemL()
 
         split = layout.split()
 
@@ -509,15 +515,9 @@ class RENDER_PT_dimensions(RenderButtonsPanel):
         sub.itemR(scene, "end_frame", text="End")
         sub.itemR(scene, "frame_step", text="Step")
 
-        sub = col.column(align=True)
         sub.itemL(text="Frame Rate:")
         sub.itemR(rd, "fps")
-        sub.itemR(rd, "fps_base", text="/")
-
-        sub = col.split(percentage=0.75)        
-        sub.itemM("RENDER_MT_presets", text="Presets")
-        sub.itemO("render.preset_add", text="Add")
-        
+        sub.itemR(rd, "fps_base", text="/")  
 
 
 class RENDER_PT_stamp(RenderButtonsPanel):