do not auto-layout when returning to arrange mode from another mode

This commit is contained in:
Stewart Allen 2019-04-15 15:18:53 -04:00
commit 968b7d0a0a

View file

@ -1587,6 +1587,7 @@ self.kiri.license = exports.LICENSE;
var layout = (viewMode === VIEWS.ARRANGE),
proc = settings.process,
modified = false,
oldmode = viewMode,
topZ = MODE === MODES.CAM ? camTopZ : 0;
switch (MODE) {
@ -1602,6 +1603,12 @@ self.kiri.license = exports.LICENSE;
setViewMode(VIEWS.ARRANGE);
hideSlices();
// only auto-layout when in arrange mode
if (oldmode !== VIEWS.ARRANGE) {
SPACE.update();
return;
}
// do not layout when switching back from slice view
if (!space && !layout) return SPACE.update();