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

tweak mpeg

parent 5586df40
Branches
Tags
No related merge requests found
...@@ -222,7 +222,7 @@ static void change_print_parameter(int frame) ...@@ -222,7 +222,7 @@ static void change_print_parameter(int frame)
ParseString(CTX::instance()->print.parameterCommand); 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; std::string name = fileName;
if(name.empty()) name = GetDefaultFileName(format); if(name.empty()) name = GetDefaultFileName(format);
...@@ -232,7 +232,7 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw) ...@@ -232,7 +232,7 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw)
CTX::instance()->printing = 1; CTX::instance()->printing = 1;
bool error = false; bool error = false;
if(redraw) if(status)
Msg::StatusBar(true, "Writing '%s'...", name.c_str()); Msg::StatusBar(true, "Writing '%s'...", name.c_str());
switch (format) { switch (format) {
...@@ -625,10 +625,10 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw) ...@@ -625,10 +625,10 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw)
CTX::instance()->print.fileFormat = oldFormat; CTX::instance()->print.fileFormat = oldFormat;
CTX::instance()->printing = 0; CTX::instance()->printing = 0;
if(redraw && !error) if(status && !error)
Msg::StatusBar(true, "Done writing '%s'", name.c_str()); Msg::StatusBar(true, "Done writing '%s'", name.c_str());
#if defined(HAVE_OPENGL) #if defined(HAVE_OPENGL)
if(redraw) drawContext::global()->draw(); drawContext::global()->draw();
#endif #endif
} }
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
int GetFileFormatFromExtension(const std::string &fileName); int GetFileFormatFromExtension(const std::string &fileName);
int GuessFileFormatFromFileName(const std::string &fileName); int GuessFileFormatFromFileName(const std::string &fileName);
std::string GetDefaultFileName(int format); 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 #endif
...@@ -267,7 +267,8 @@ StringXString ViewOptions_String[] = { ...@@ -267,7 +267,8 @@ StringXString ViewOptions_String[] = {
StringXString PrintOptions_String[] = { StringXString PrintOptions_String[] = {
{ F|O, "ParameterCommand" , opt_print_parameter_command , { 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" }, "Command parsed when the print parameter is changed" },
{ 0, 0 , 0 , "" , 0 } { 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