[Bf-blender-cvs] [83d78eb32cc] master: Close metadata panels by default

Sergey Sharybin noreply at git.blender.org
Thu Feb 7 09:39:15 CET 2019


Commit: 83d78eb32ccfc3a2d6f429dc51961f052aca9a53
Author: Sergey Sharybin
Date:   Thu Feb 7 09:38:49 2019 +0100
Branches: master
https://developer.blender.org/rB83d78eb32ccfc3a2d6f429dc51961f052aca9a53

Close metadata panels by default

They might be rather long, and not that commonly accessed.

===================================================================

M	source/blender/editors/space_clip/clip_buttons.c
M	source/blender/editors/space_image/image_buttons.c
M	source/blender/editors/space_sequencer/sequencer_buttons.c

===================================================================

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);
 }



More information about the Bf-blender-cvs mailing list