Fixed erroneous use of logical OR where bitwise OR was meant
Also, PrintBase::SlicingStatus enum had two entries assigned to 0 - removed the one that was never used
This commit is contained in:
parent
fdbe339622
commit
dbc51a140d
2 changed files with 2 additions and 3 deletions
|
@ -268,8 +268,7 @@ public:
|
||||||
std::string text;
|
std::string text;
|
||||||
// Bitmap of flags.
|
// Bitmap of flags.
|
||||||
enum FlagBits {
|
enum FlagBits {
|
||||||
DEFAULT,
|
DEFAULT = 0,
|
||||||
NO_RELOAD_SCENE = 0,
|
|
||||||
RELOAD_SCENE = 1 << 1,
|
RELOAD_SCENE = 1 << 1,
|
||||||
RELOAD_SLA_SUPPORT_POINTS = 1 << 2,
|
RELOAD_SLA_SUPPORT_POINTS = 1 << 2,
|
||||||
RELOAD_SLA_PREVIEW = 1 << 3,
|
RELOAD_SLA_PREVIEW = 1 << 3,
|
||||||
|
|
|
@ -3322,7 +3322,7 @@ void Plater::priv::on_slicing_update(SlicingStatusEvent &evt)
|
||||||
this->statusbar()->set_progress(evt.status.percent);
|
this->statusbar()->set_progress(evt.status.percent);
|
||||||
this->statusbar()->set_status_text(_(evt.status.text) + wxString::FromUTF8("…"));
|
this->statusbar()->set_status_text(_(evt.status.text) + wxString::FromUTF8("…"));
|
||||||
}
|
}
|
||||||
if (evt.status.flags & (PrintBase::SlicingStatus::RELOAD_SCENE || PrintBase::SlicingStatus::RELOAD_SLA_SUPPORT_POINTS)) {
|
if (evt.status.flags & (PrintBase::SlicingStatus::RELOAD_SCENE | PrintBase::SlicingStatus::RELOAD_SLA_SUPPORT_POINTS)) {
|
||||||
switch (this->printer_technology) {
|
switch (this->printer_technology) {
|
||||||
case ptFFF:
|
case ptFFF:
|
||||||
this->update_fff_scene();
|
this->update_fff_scene();
|
||||||
|
|
Loading…
Reference in a new issue