mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Completed setting of the item focus in ObjectList after undo/redo
This commit is contained in:
parent
804e1b1939
commit
0592ae65ee
5 changed files with 82 additions and 20 deletions
|
@ -36,7 +36,7 @@
|
|||
namespace Slic3r {
|
||||
namespace UndoRedo {
|
||||
|
||||
SnapshotData::SnapshotData() : printer_technology(ptUnknown), flags(0)
|
||||
SnapshotData::SnapshotData() : printer_technology(ptUnknown), flags(0), layer_range({0.0, 0.0})
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
|
||||
#include <libslic3r/ObjectID.hpp>
|
||||
|
||||
typedef double coordf_t;
|
||||
typedef std::pair<coordf_t, coordf_t> t_layer_height_range;
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
class Model;
|
||||
|
@ -38,8 +41,12 @@ struct SnapshotData
|
|||
// Bitmask of various binary flags to be stored with the snapshot.
|
||||
enum Flags {
|
||||
VARIABLE_LAYER_EDITING_ACTIVE = 1,
|
||||
SETTINGS_SELECTED_ON_SIDEBAR = 2,
|
||||
SELECTED_SETTINGS_ON_SIDEBAR = 2,
|
||||
SELECTED_LAYERROOT_ON_SIDEBAR = 4,
|
||||
SELECTED_LAYER_ON_SIDEBAR = 8,
|
||||
};
|
||||
|
||||
t_layer_height_range layer_range;
|
||||
};
|
||||
|
||||
struct Snapshot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue