Merge remote-tracking branch 'origin/master' into feature_arrange_with_libnest2d
This commit is contained in:
commit
eefa1678db
@ -204,7 +204,7 @@ sub new {
|
|||||||
if (($preview != $self->{preview3D}) && ($preview != $self->{canvas3D})) {
|
if (($preview != $self->{preview3D}) && ($preview != $self->{canvas3D})) {
|
||||||
$preview->OnActivate if $preview->can('OnActivate');
|
$preview->OnActivate if $preview->can('OnActivate');
|
||||||
} elsif ($preview == $self->{preview3D}) {
|
} elsif ($preview == $self->{preview3D}) {
|
||||||
$self->{preview3D}->load_print;
|
$self->{preview3D}->reload_print;
|
||||||
# sets the canvas as dirty to force a render at the 1st idle event (wxWidgets IsShownOnScreen() is buggy and cannot be used reliably)
|
# sets the canvas as dirty to force a render at the 1st idle event (wxWidgets IsShownOnScreen() is buggy and cannot be used reliably)
|
||||||
Slic3r::GUI::_3DScene::set_as_dirty($self->{preview3D}->canvas);
|
Slic3r::GUI::_3DScene::set_as_dirty($self->{preview3D}->canvas);
|
||||||
} elsif ($preview == $self->{canvas3D}) {
|
} elsif ($preview == $self->{canvas3D}) {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include <boost/thread.hpp>
|
#include <boost/thread.hpp>
|
||||||
|
|
||||||
#define SLIC3R_FORK_NAME "Slic3r Prusa Edition"
|
#define SLIC3R_FORK_NAME "Slic3r Prusa Edition"
|
||||||
#define SLIC3R_VERSION "1.40.1-rc2"
|
#define SLIC3R_VERSION "1.40.1"
|
||||||
#define SLIC3R_BUILD "UNKNOWN"
|
#define SLIC3R_BUILD "UNKNOWN"
|
||||||
|
|
||||||
typedef int32_t coord_t;
|
typedef int32_t coord_t;
|
||||||
|
@ -91,17 +91,13 @@ std::string GLCanvas3DManager::GLInfo::to_string(bool format_as_html, bool exten
|
|||||||
|
|
||||||
if (extensions)
|
if (extensions)
|
||||||
{
|
{
|
||||||
out << h2_start << "Installed extensions:" << h2_end << line_end;
|
|
||||||
|
|
||||||
std::vector<std::string> extensions_list;
|
std::vector<std::string> extensions_list;
|
||||||
GLint num_extensions;
|
std::string extensions_str = (const char*)::glGetString(GL_EXTENSIONS);
|
||||||
::glGetIntegerv(GL_NUM_EXTENSIONS, &num_extensions);
|
boost::split(extensions_list, extensions_str, boost::is_any_of(" "), boost::token_compress_off);
|
||||||
|
|
||||||
for (GLint i = 0; i < num_extensions; ++i)
|
if (!extensions_list.empty())
|
||||||
{
|
{
|
||||||
const char* e = (const char*)::glGetStringi(GL_EXTENSIONS, i);
|
out << h2_start << "Installed extensions:" << h2_end << line_end;
|
||||||
extensions_list.push_back(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::sort(extensions_list.begin(), extensions_list.end());
|
std::sort(extensions_list.begin(), extensions_list.end());
|
||||||
for (const std::string& ext : extensions_list)
|
for (const std::string& ext : extensions_list)
|
||||||
@ -109,6 +105,7 @@ std::string GLCanvas3DManager::GLInfo::to_string(bool format_as_html, bool exten
|
|||||||
out << ext << line_end;
|
out << ext << line_end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return out.str();
|
return out.str();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user