[Bf-blender-cvs] [3400ba329e6] master: VSE: Use own category for metadata panel
Richard Antalik
noreply at git.blender.org
Tue Jun 1 23:14:26 CEST 2021
Commit: 3400ba329e6b9ce865bcc592889edb7e958b3b37
Author: Richard Antalik
Date: Tue Jun 1 23:06:31 2021 +0200
Branches: master
https://developer.blender.org/rB3400ba329e6b9ce865bcc592889edb7e958b3b37
VSE: Use own category for metadata panel
Metadata panel was visible in each category. In other editors, this
panel is usually placed in category with other source media properties.
In sequencer, metadata is transfered over while compositing and relation
to particular strip is lost, therefore separate category for metadata
seems to be best option. Since Metadata panel is alone in this category,
it will be open by default.
===================================================================
M source/blender/editors/space_sequencer/sequencer_buttons.c
===================================================================
diff --git a/source/blender/editors/space_sequencer/sequencer_buttons.c b/source/blender/editors/space_sequencer/sequencer_buttons.c
index 11614d94862..1e0ecfd890e 100644
--- a/source/blender/editors/space_sequencer/sequencer_buttons.c
+++ b/source/blender/editors/space_sequencer/sequencer_buttons.c
@@ -111,10 +111,10 @@ void sequencer_buttons_register(ARegionType *art)
pt = MEM_callocN(sizeof(PanelType), "spacetype sequencer panel metadata");
strcpy(pt->idname, "SEQUENCER_PT_metadata");
strcpy(pt->label, N_("Metadata"));
+ strcpy(pt->category, "Metadata");
strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA);
pt->poll = metadata_panel_context_poll;
pt->draw = metadata_panel_context_draw;
- pt->flag |= PANEL_TYPE_DEFAULT_CLOSED;
pt->order = 10;
BLI_addtail(&art->paneltypes, pt);
}
More information about the Bf-blender-cvs
mailing list