From 968b7d0a0a2c5f7a1c3d20cdc2bf3469d3decaad Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Mon, 15 Apr 2019 15:18:53 -0400 Subject: [PATCH] do not auto-layout when returning to arrange mode from another mode --- js/kiri.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/kiri.js b/js/kiri.js index f7e2618b..6cfa154b 100644 --- a/js/kiri.js +++ b/js/kiri.js @@ -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();