Revision: 28129
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28129
Author:   schlaile
Date:     2010-04-11 20:37:49 +0200 (Sun, 11 Apr 2010)

Log Message:
-----------
== Sequencer ==

Proxy render size settings is now back. (Maybe still in need of some sensible
icons, though...)

Also: waveform color seperation works in N-keys dialog again.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_sequencer.py
    trunk/blender/source/blender/makesdna/DNA_space_types.h
    trunk/blender/source/blender/makesrna/intern/rna_space.c

Modified: trunk/blender/release/scripts/ui/space_sequencer.py
===================================================================
--- trunk/blender/release/scripts/ui/space_sequencer.py 2010-04-11 16:41:43 UTC 
(rev 28128)
+++ trunk/blender/release/scripts/ui/space_sequencer.py 2010-04-11 18:37:49 UTC 
(rev 28129)
@@ -741,10 +741,13 @@
         st = context.space_data
 
         col = layout.column()
-        col.prop(st, "draw_overexposed") # text="Zebra"
-        col.prop(st, "draw_safe_margin")
+        if st.display_mode == 'IMAGE':
+            col.prop(st, "draw_overexposed") # text="Zebra"
+            col.prop(st, "draw_safe_margin")
+        if st.display_mode == 'WAVEFORM':
+            col.prop(st, "separate_color_preview")
+        col.prop(st, "proxy_render_size");
 
-
 classes = [
     SEQUENCER_HT_header, # header/menu classes
     SEQUENCER_MT_view,

Modified: trunk/blender/source/blender/makesdna/DNA_space_types.h
===================================================================
--- trunk/blender/source/blender/makesdna/DNA_space_types.h     2010-04-11 
16:41:43 UTC (rev 28128)
+++ trunk/blender/source/blender/makesdna/DNA_space_types.h     2010-04-11 
18:37:49 UTC (rev 28129)
@@ -872,7 +872,15 @@
 #define SEQ_VIEW_PREVIEW                       2
 #define SEQ_VIEW_SEQUENCE_PREVIEW      3
 
+/* sseq->render_size */
+#define SEQ_PROXY_RENDER_SIZE_NONE      -1
+#define SEQ_PROXY_RENDER_SIZE_SCENE     0
+#define SEQ_PROXY_RENDER_SIZE_25        25
+#define SEQ_PROXY_RENDER_SIZE_50        50
+#define SEQ_PROXY_RENDER_SIZE_75        75
+#define SEQ_PROXY_RENDER_SIZE_FULL      100
 
+
 /* space types, moved from DNA_screen_types.h */
 enum {
        SPACE_EMPTY,

Modified: trunk/blender/source/blender/makesrna/intern/rna_space.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_space.c    2010-04-11 
16:41:43 UTC (rev 28128)
+++ trunk/blender/source/blender/makesrna/intern/rna_space.c    2010-04-11 
18:37:49 UTC (rev 28129)
@@ -1311,6 +1311,15 @@
                {SEQ_DRAW_IMG_VECTORSCOPE, "VECTOR_SCOPE", 
ICON_SEQ_CHROMA_SCOPE, "Chroma Vectorscope", ""},
                {SEQ_DRAW_IMG_HISTOGRAM, "HISTOGRAM", ICON_SEQ_HISTOGRAM, 
"Histogram", ""},
                {0, NULL, 0, NULL, NULL}};
+
+       static EnumPropertyItem proxy_render_size_items[] = {
+               {SEQ_PROXY_RENDER_SIZE_NONE, "NONE", ICON_SEQ_PREVIEW, "No 
display", ""},
+               {SEQ_PROXY_RENDER_SIZE_SCENE, "SCENE", ICON_SEQ_PREVIEW, "Scene 
render size", ""},
+               {SEQ_PROXY_RENDER_SIZE_25, "PROXY_25", ICON_SEQ_PREVIEW, "Proxy 
size 25%", ""},
+               {SEQ_PROXY_RENDER_SIZE_50, "PROXY_50", ICON_SEQ_PREVIEW, "Proxy 
size 50%", ""},
+               {SEQ_PROXY_RENDER_SIZE_75, "PROXY_75", ICON_SEQ_PREVIEW, "Proxy 
size 75%", ""},
+               {SEQ_PROXY_RENDER_SIZE_FULL, "FULL", ICON_SEQ_PREVIEW, "No 
proxy, full render", ""},
+               {0, NULL, 0, NULL, NULL}};
        
        srna= RNA_def_struct(brna, "SpaceSequenceEditor", "Space");
        RNA_def_struct_sdna(srna, "SpaceSeq");
@@ -1381,7 +1390,13 @@
        RNA_def_property_range(prop, 0, 110);
        RNA_def_property_update(prop, NC_SPACE|ND_SPACE_SEQUENCER, NULL);
        
+       prop= RNA_def_property(srna, "proxy_render_size", PROP_ENUM, PROP_NONE);
+       RNA_def_property_enum_sdna(prop, NULL, "render_size");
+       RNA_def_property_enum_items(prop, proxy_render_size_items);
+       RNA_def_property_ui_text(prop, "Proxy render size", "Draw preview using 
full resolution or different proxy resolutions");
+       RNA_def_property_update(prop, NC_SPACE|ND_SPACE_SEQUENCER, NULL);
        
+       
        /* not sure we need rna access to these but adding anyway */
        prop= RNA_def_property(srna, "offset_x", PROP_FLOAT, PROP_NONE);
        RNA_def_property_float_sdna(prop, NULL, "xof");


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to