Fix internal/external snap type restoration.
This commit is contained in:
parent
84412e1367
commit
3a47d99f5f
@ -680,7 +680,6 @@ Editor::Editor ()
|
||||
_snap_mode = SnapOff;
|
||||
set_snap_mode (_snap_mode);
|
||||
set_mouse_mode (MouseObject, true);
|
||||
pre_internal_mouse_mode = MouseObject;
|
||||
pre_internal_snap_type = _snap_type;
|
||||
pre_internal_snap_mode = _snap_mode;
|
||||
internal_snap_type = _snap_type;
|
||||
@ -2038,6 +2037,12 @@ Editor::set_snap_to (SnapType st)
|
||||
{
|
||||
unsigned int snap_ind = (unsigned int)st;
|
||||
|
||||
if (internal_editing()) {
|
||||
internal_snap_type = st;
|
||||
} else {
|
||||
pre_internal_snap_type = st;
|
||||
}
|
||||
|
||||
_snap_type = st;
|
||||
|
||||
if (snap_ind > snap_type_strings.size() - 1) {
|
||||
|
@ -572,7 +572,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
||||
void set_samples_per_pixel (framecnt_t);
|
||||
|
||||
Editing::MouseMode mouse_mode;
|
||||
Editing::MouseMode pre_internal_mouse_mode;
|
||||
Editing::SnapType pre_internal_snap_type;
|
||||
Editing::SnapMode pre_internal_snap_mode;
|
||||
Editing::SnapType internal_snap_type;
|
||||
|
Loading…
Reference in New Issue
Block a user