Sequencer:
* It's now possible to set the scene for a scene strip.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user