[Bf-blender-cvs] [53a3e881754] temp-checkbox-layout-tweaks: Layout updates for Output Properties

William Reynish noreply at git.blender.org
Wed Apr 8 17:24:00 CEST 2020


Commit: 53a3e88175496f970dff2fecb35d9f16e5ec104e
Author: William Reynish
Date:   Wed Apr 8 17:23:09 2020 +0200
Branches: temp-checkbox-layout-tweaks
https://developer.blender.org/rB53a3e88175496f970dff2fecb35d9f16e5ec104e

Layout updates for Output Properties

===================================================================

M	release/scripts/startup/bl_ui/properties_output.py
M	source/blender/makesrna/intern/rna_scene.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_output.py b/release/scripts/startup/bl_ui/properties_output.py
index 748961bb40f..e2158d3644a 100644
--- a/release/scripts/startup/bl_ui/properties_output.py
+++ b/release/scripts/startup/bl_ui/properties_output.py
@@ -171,10 +171,8 @@ class RENDER_PT_post_processing(RenderOutputButtonsPanel, Panel):
 
         rd = context.scene.render
 
-        flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
-        col = flow.column()
+        col = layout.column(heading = "Pipeline")
         col.prop(rd, "use_compositing")
-        col = flow.column()
         col.prop(rd, "use_sequencer")
 
         layout.prop(rd, "dither_intensity", text="Dither", slider=True)
@@ -192,44 +190,23 @@ class RENDER_PT_stamp(RenderOutputButtonsPanel, Panel):
 
         rd = context.scene.render
 
-        flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
+        if rd.use_sequencer:
+            layout.prop(rd, "metadata_input")
 
-        col = flow.column()
+        col = layout.column(heading = "Include")
         col.prop(rd, "use_stamp_date", text="Date")
-        col = flow.column()
         col.prop(rd, "use_stamp_time", text="Time")
-
-        col = flow.column()
         col.prop(rd, "use_stamp_render_time", text="Render Time")
-        col = flow.column()
         col.prop(rd, "use_stamp_frame", text="Frame")
-        col = flow.column()
         col.prop(rd, "use_stamp_frame_range", text="Frame Range")
-        col = flow.column()
         col.prop(rd, "use_stamp_memory", text="Memory")
-        col = flow.column()
         col.prop(rd, "use_stamp_hostname", text="Hostname")
-
-        col = flow.column()
         col.prop(rd, "use_stamp_camera", text="Camera")
-        col = flow.column()
         col.prop(rd, "use_stamp_lens", text="Lens")
-
-        col = flow.column()
         col.prop(rd, "use_stamp_scene", text="Scene")
-        col = flow.column()
         col.prop(rd, "use_stamp_marker", text="Marker")
-
-        col = flow.column()
         col.prop(rd, "use_stamp_filename", text="Filename")
 
-        col = flow.column()
-        col.prop(rd, "use_stamp_sequencer_strip", text="Strip Name")
-
-        if rd.use_sequencer:
-            col = flow.column()
-            col.prop(rd, "use_stamp_strip_meta", text="Use Strip Metadata")
-
 
 class RENDER_PT_stamp_note(RenderOutputButtonsPanel, Panel):
     bl_label = "Note"
@@ -293,21 +270,17 @@ class RENDER_PT_output(RenderOutputButtonsPanel, Panel):
 
         layout.use_property_split = True
 
-        flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
-
-        col = flow.column()
-        col.active = not rd.is_movie_format
-        col.prop(rd, "use_overwrite")
-        col = flow.column()
-        col.active = not rd.is_movie_format
-        col.prop(rd, "use_placeholder")
-        col = flow.column()
+        col = layout.column(heading = "Saving")
         col.prop(rd, "use_file_extension")
-        col = flow.column()
         col.prop(rd, "use_render_cache")
 
         layout.template_image_settings(image_settings, color_management=False)
 
+        if not rd.is_movie_format:
+            col = layout.column(heading = "Image Sequence")
+            col.prop(rd, "use_overwrite")
+            col.prop(rd, "use_placeholder")
+
 
 class RENDER_PT_output_views(RenderOutputButtonsPanel, Panel):
     bl_label = "Views"
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 27ebbe79085..6548aa01091 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -5699,6 +5699,16 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
       {0, NULL, 0, NULL, NULL},
   };
 
+  static const EnumPropertyItem meta_input_items[] = {
+      {0, "SCENE", 0, "Scene", "Use metadata from the current scene"},
+      {R_STAMP_STRIPMETA,
+       "STRIPS",
+       0,
+       "Sequencer Strips",
+       "Use metadata from the strips in the sequencer"},
+      {0, NULL, 0, NULL, NULL},
+  };
+
   rna_def_scene_ffmpeg_settings(brna);
 
   srna = RNA_def_struct(brna, "RenderSettings", NULL);
@@ -6216,10 +6226,10 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
       prop, "Stamp Labels", "Display stamp labels (\"Camera\" in front of camera name, etc.)");
   RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
 
-  prop = RNA_def_property(srna, "use_stamp_strip_meta", PROP_BOOLEAN, PROP_NONE);
-  RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_STRIPMETA);
-  RNA_def_property_ui_text(
-      prop, "Strip Metadata", "Use metadata from the strips in the sequencer");
+  prop = RNA_def_property(srna, "metadata_input", PROP_ENUM, PROP_NONE); /* as an enum */
+  RNA_def_property_enum_bitflag_sdna(prop, NULL, "stamp");
+  RNA_def_property_enum_items(prop, meta_input_items);
+  RNA_def_property_ui_text(prop, "Metadata Input", "Where to take the metadata from");
   RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
 
   prop = RNA_def_property(srna, "use_stamp_memory", PROP_BOOLEAN, PROP_NONE);



More information about the Bf-blender-cvs mailing list