diff options
Diffstat (limited to 'release/scripts/ui/properties_render.py')
-rw-r--r-- | release/scripts/ui/properties_render.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/ui/properties_render.py b/release/scripts/ui/properties_render.py index 25cd30e45a1..99b75b59fdd 100644 --- a/release/scripts/ui/properties_render.py +++ b/release/scripts/ui/properties_render.py @@ -39,8 +39,8 @@ class RENDER_MT_framerate_presets(bpy.types.Menu): preset_subdir = "framerate" preset_operator = "script.execute_preset" draw = bpy.types.Menu.draw_preset - - + + class RenderButtonsPanel(): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' @@ -566,20 +566,20 @@ class RENDER_PT_dimensions(RenderButtonsPanel, bpy.types.Panel): fps_rate = round(rd.fps / rd.fps_base) else: fps_rate = round(rd.fps / rd.fps_base, 2) - + # TODO: Change the following to iterate over existing presets if (fps_rate in (23.98, 24, 25, 29.97, 30, 50, 59.94, 60)): custom_framerate = False else: custom_framerate = True - + if custom_framerate == True: fps_label_text = "Custom (" + str(fps_rate) + " fps)" else: fps_label_text = str(fps_rate) + " fps" - + sub.menu("RENDER_MT_framerate_presets", text=fps_label_text) - + if (bpy.types.RENDER_MT_framerate_presets.bl_label == "Custom") or (custom_framerate == True): sub.prop(rd, "fps") sub.prop(rd, "fps_base", text="/") |