Move Time Remapping into a sub-panel
authorPablo Vazquez <venomgfx@gmail.com>
Wed, 6 Jun 2018 12:28:29 +0000 (14:28 +0200)
committerPablo Vazquez <venomgfx@gmail.com>
Wed, 6 Jun 2018 12:28:35 +0000 (14:28 +0200)
release/scripts/startup/bl_ui/properties_render.py

index 0e38b0ef53504c1b74a0e9e9152f3b9b0e42ab20..7cb0ce55be3d5b58442f4c51994037d94a02e1f1 100644 (file)
@@ -152,7 +152,7 @@ class RENDER_PT_dimensions(RenderButtonsPanel, Panel):
         sub.prop(rd, "use_crop_to_border", text="Crop")
 
         col = layout.column(align=True)
-        col.prop(scene, "frame_start", text="Frame Range Start")
+        col.prop(scene, "frame_start", text="Frame Start")
         col.prop(scene, "frame_end", text="End")
         col.prop(scene, "frame_step", text="Step")
 
@@ -161,8 +161,21 @@ class RENDER_PT_dimensions(RenderButtonsPanel, Panel):
         col.label(text="Frame Rate")
         self.draw_framerate(col, rd)
 
+
+class RENDER_PT_frame_remapping(RenderButtonsPanel, Panel):
+    bl_label = "Time Remapping"
+    bl_parent_id = "RENDER_PT_dimensions"
+    bl_options = {'DEFAULT_CLOSED'}
+    COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
+
+    def draw(self, context):
+        layout = self.layout
+        layout.use_property_split = True
+
+        rd = context.scene.render
+
         col = layout.column(align=True)
-        col.prop(rd, "frame_map_old", text="Time Remapping Old")
+        col.prop(rd, "frame_map_old", text="Old")
         col.prop(rd, "frame_map_new", text="New")
 
 
@@ -774,6 +787,7 @@ classes = (
     RENDER_MT_framerate_presets,
     RENDER_PT_context,
     RENDER_PT_dimensions,
+    RENDER_PT_frame_remapping,
     RENDER_PT_post_processing,
     RENDER_PT_output,
     RENDER_PT_encoding,