diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-07 11:38:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-07 11:38:49 +0300 |
commit | 83d78eb32ccfc3a2d6f429dc51961f052aca9a53 (patch) | |
tree | e98f16f42ea9437940bfdbc3b633f55d76fb2d0e /source/blender | |
parent | 9b86c90193973b1a6b3afad35af9a015a65dac45 (diff) |
Close metadata panels by default
They might be rather long, and not that commonly accessed.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_clip/clip_buttons.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_image/image_buttons.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_buttons.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/clip_buttons.c b/source/blender/editors/space_clip/clip_buttons.c index 4b91d98718d..03b438539dc 100644 --- a/source/blender/editors/space_clip/clip_buttons.c +++ b/source/blender/editors/space_clip/clip_buttons.c @@ -94,6 +94,7 @@ void ED_clip_buttons_register(ARegionType *art) strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); pt->poll = metadata_panel_context_poll; pt->draw = metadata_panel_context_draw; + pt->flag |= PNL_DEFAULT_CLOSED; BLI_addtail(&art->paneltypes, pt); } diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c index 1a7e81f55aa..1cc596b14ce 100644 --- a/source/blender/editors/space_image/image_buttons.c +++ b/source/blender/editors/space_image/image_buttons.c @@ -1297,6 +1297,7 @@ void image_buttons_register(ARegionType *art) strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); pt->poll = metadata_panel_context_poll; pt->draw = metadata_panel_context_draw; + pt->flag |= PNL_DEFAULT_CLOSED; BLI_addtail(&art->paneltypes, pt); } diff --git a/source/blender/editors/space_sequencer/sequencer_buttons.c b/source/blender/editors/space_sequencer/sequencer_buttons.c index 39d674b421a..fec3c9b31de 100644 --- a/source/blender/editors/space_sequencer/sequencer_buttons.c +++ b/source/blender/editors/space_sequencer/sequencer_buttons.c @@ -120,6 +120,7 @@ void sequencer_buttons_register(ARegionType *art) strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); pt->poll = metadata_panel_context_poll; pt->draw = metadata_panel_context_draw; + pt->flag |= PNL_DEFAULT_CLOSED; BLI_addtail(&art->paneltypes, pt); } |