fix slider view in arrange mode
This commit is contained in:
parent
2a11754037
commit
4b7201c07b
2 changed files with 9 additions and 1 deletions
|
|
@ -333,7 +333,11 @@
|
|||
API.show.local();
|
||||
break;
|
||||
case cca('v'): // toggle single slice view mode
|
||||
UI.layerRange.checked = !UI.layerRange.checked;
|
||||
if (API.var.layer_hi == API.var.layer_lo) {
|
||||
API.var.layer_lo = 0;
|
||||
} else {
|
||||
API.var.layer_lo = API.var.layer_hi;
|
||||
}
|
||||
API.show.slices();
|
||||
break;
|
||||
case cca('d'): // duplicate object
|
||||
|
|
|
|||
|
|
@ -547,6 +547,10 @@
|
|||
* @param {number} [layer]
|
||||
*/
|
||||
function showSlices(layer) {
|
||||
if (viewMode === VIEWS.ARRANGE) {
|
||||
return;
|
||||
}
|
||||
|
||||
showSlider();
|
||||
|
||||
if (typeof(layer) === 'string' || typeof(layer) === 'number') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue