Sequencer:

* It's now possible to set the scene for a scene strip.
This commit is contained in:
2009-11-22 21:16:04 +00:00
parent 2c461af8a3
commit db164d8849
2 changed files with 25 additions and 1 deletions

View File

@@ -501,7 +501,7 @@ class SEQUENCER_PT_sound(SequencerButtonsPanel):
if not strip:
return False
return strip.type in ('SOUND', )
return strip.type in ('SOUND')
def draw(self, context):
layout = self.layout
@@ -522,6 +522,27 @@ class SEQUENCER_PT_sound(SequencerButtonsPanel):
row.itemR(strip.sound, "caching")
layout.itemR(strip, "volume")
class SEQUENCER_PT_scene(SequencerButtonsPanel):
bl_label = "Scene"
def poll(self, context):
if context.space_data.display_mode != 'SEQUENCER':
return False
strip = act_strip(context)
if not strip:
return False
return strip.type in ('SCENE')
def draw(self, context):
layout = self.layout
strip = act_strip(context)
layout.template_ID(strip, "scene")
class SEQUENCER_PT_filter(SequencerButtonsPanel):
@@ -628,6 +649,7 @@ bpy.types.register(SEQUENCER_PT_edit) # sequencer panels
bpy.types.register(SEQUENCER_PT_effect)
bpy.types.register(SEQUENCER_PT_input)
bpy.types.register(SEQUENCER_PT_sound)
bpy.types.register(SEQUENCER_PT_scene)
bpy.types.register(SEQUENCER_PT_filter)
bpy.types.register(SEQUENCER_PT_proxy)

View File

@@ -743,7 +743,9 @@ static void rna_def_scene(BlenderRNA *brna)
RNA_def_struct_sdna(srna, "Sequence");
prop= RNA_def_property(srna, "scene", PROP_POINTER, PROP_NONE);
RNA_def_property_flag(prop, PROP_EDITABLE);
RNA_def_property_ui_text(prop, "Scene", "Scene that this sequence uses.");
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, NULL);
rna_def_filter_video(srna);
rna_def_proxy(srna);