Skip to content
Snippets Groups Projects
Commit 5050e149 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

tweak mpeg

parent 5586df40
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,7 @@ static void change_print_parameter(int frame)
ParseString(CTX::instance()->print.parameterCommand);
}
void CreateOutputFile(const std::string &fileName, int format, bool redraw)
void CreateOutputFile(const std::string &fileName, int format, bool status)
{
std::string name = fileName;
if(name.empty()) name = GetDefaultFileName(format);
......@@ -232,7 +232,7 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw)
CTX::instance()->printing = 1;
bool error = false;
if(redraw)
if(status)
Msg::StatusBar(true, "Writing '%s'...", name.c_str());
switch (format) {
......@@ -625,10 +625,10 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw)
CTX::instance()->print.fileFormat = oldFormat;
CTX::instance()->printing = 0;
if(redraw && !error)
if(status && !error)
Msg::StatusBar(true, "Done writing '%s'", name.c_str());
#if defined(HAVE_OPENGL)
if(redraw) drawContext::global()->draw();
drawContext::global()->draw();
#endif
}
......@@ -11,6 +11,6 @@
int GetFileFormatFromExtension(const std::string &fileName);
int GuessFileFormatFromFileName(const std::string &fileName);
std::string GetDefaultFileName(int format);
void CreateOutputFile(const std::string &fileName, int format, bool redraw=true);
void CreateOutputFile(const std::string &fileName, int format, bool status=true);
#endif
......@@ -267,7 +267,8 @@ StringXString ViewOptions_String[] = {
StringXString PrintOptions_String[] = {
{ F|O, "ParameterCommand" , opt_print_parameter_command ,
"View.Clip=1; General.Clip0D=Print.Parameter;" ,
"Mesh.Clip=1; View.Clip=1; General.ClipWholeElements=1; "
"General.Clip0D=Print.Parameter; SetChanged;" ,
"Command parsed when the print parameter is changed" },
{ 0, 0 , 0 , "" , 0 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment