Don't allow layer changes while drawing

(closes #6584)
This commit is contained in:
Bryan Housel
2019-06-30 01:08:25 -04:00
parent c95287b083
commit 618587aa48
+4
View File
@@ -96,6 +96,10 @@ export function uiMapData(context) {
function setLayer(which, enabled) {
// Don't allow layer changes while drawing - #6584
var mode = context.mode();
if (mode && /^draw/.test(mode.id)) return;
var layer = layers.layer(which);
if (layer) {
layer.enabled(enabled);