Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2006-06-16 19:43:50 +0400
committerChris Want <cwant@ualberta.ca>2006-06-16 19:43:50 +0400
commitf642d54c1877216b850c91088da1b35e7d89ed86 (patch)
treedaad3670466fbb654b87255f7c6d4dd4feea4fde /source
parent6c790007130182186dc9d88a262212cf8877e249 (diff)
When ffmpeg format is selected, make 'Video' and 'Audio' panels
as tabs of the format panel (was annoying how the format panel would jump far to the right after selecting format' Thanks ao2 for noticing. Note: as self-appointed code weenie, I should point out that the ffmpeg code has a lot of tab/space indenting mixed in nasty ways -- this should be fixed.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/buttons_scene.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/src/buttons_scene.c b/source/blender/src/buttons_scene.c
index 9beeb64c4ea..83dd9c6e86c 100644
--- a/source/blender/src/buttons_scene.c
+++ b/source/blender/src/buttons_scene.c
@@ -1390,6 +1390,7 @@ static void render_panel_ffmpeg_video(void)
uiBlock *block;
block = uiNewBlock(&curarea->uiblocks, "render_panel_ffmpeg_video",
UI_EMBOSS, UI_HELV, curarea->win);
+ uiNewPanelTabbed("Format", "Render");
if (uiNewPanel(curarea, block, "Video", "Render", 960, 0, 318, 204)
== 0) return;
@@ -1467,6 +1468,7 @@ static void render_panel_ffmpeg_audio(void)
int xcol;
uiBlock *block;
block = uiNewBlock(&curarea->uiblocks, "render_panel_ffmpeg_audio", UI_EMBOSS, UI_HELV, curarea->win);
+ uiNewPanelTabbed("Format", "Render");
if (uiNewPanel(curarea, block, "Audio", "Render", 960, 0, 318, 204)
== 0) return;
yofs = 54;
@@ -1873,14 +1875,15 @@ void render_panels()
render_panel_layers();
render_panel_render();
render_panel_anim();
+
+ render_panel_format();
#ifdef WITH_FFMPEG
if (G.scene->r.imtype == R_FFMPEG) {
- render_panel_ffmpeg_video();
+ render_panel_ffmpeg_video();
render_panel_ffmpeg_audio();
}
#endif
- render_panel_format();
/* yafray: GI & Global panel, only available when yafray enabled for rendering */
if (G.scene->r.renderer==R_YAFRAY) {
if (G.scene->r.YF_gamma==0.0) G.scene->r.YF_gamma=1.0;