Fixes into ENABLE_THUMBNAIL_GENERATOR_DEBUG

This commit is contained in:
Enrico Turri 2019-12-03 12:44:20 +01:00
parent a00ff7b06f
commit 8a8c71429c
3 changed files with 6 additions and 4 deletions

View File

@ -38,6 +38,8 @@
#define ENABLE_2_2_0_ALPHA1 1
// Enable thumbnail generator
// When removing this technology, remove it also from stable branch,
// where it has been partially copied for patch 2.1.1
#define ENABLE_THUMBNAIL_GENERATOR (1 && ENABLE_2_2_0_ALPHA1)
#define ENABLE_THUMBNAIL_GENERATOR_DEBUG (0 && ENABLE_THUMBNAIL_GENERATOR)

View File

@ -51,10 +51,10 @@
#include <Shlobj.h>
#endif // __WXMSW__
#if ENABLE_THUMBNAIL_GENERATOR
#if ENABLE_THUMBNAIL_GENERATOR_DEBUG
#include <boost/beast/core/detail/base64.hpp>
#include <boost/nowide/fstream.hpp>
#endif // ENABLE_THUMBNAIL_GENERATOR
#endif // ENABLE_THUMBNAIL_GENERATOR_DEBUG
namespace Slic3r {
namespace GUI {

View File

@ -188,10 +188,10 @@ public:
void open_web_page_localized(const std::string &http_address);
bool run_wizard(ConfigWizard::RunReason reason, ConfigWizard::StartPage start_page = ConfigWizard::SP_WELCOME);
#if ENABLE_THUMBNAIL_GENERATOR
#if ENABLE_THUMBNAIL_GENERATOR_DEBUG
// temporary and debug only -> extract thumbnails from selected gcode and save them as png files
void gcode_thumbnails_debug();
#endif // ENABLE_THUMBNAIL_GENERATOR
#endif // ENABLE_THUMBNAIL_GENERATOR_DEBUG
private:
bool on_init_inner();