Set toggledLayers[action.switchLayer.layer] = true
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ void updateLayerStates(void)
|
|||||||
if (action.switchLayer.mode != SwitchLayerMode_Toggle) {
|
if (action.switchLayer.mode != SwitchLayerMode_Toggle) {
|
||||||
heldLayers[action.switchLayer.layer] = true;
|
heldLayers[action.switchLayer.layer] = true;
|
||||||
} else if (!keyState->previous && keyState->current) {
|
} else if (!keyState->previous && keyState->current) {
|
||||||
toggledLayers[action.switchLayer.layer] = action.switchLayer.mode;
|
toggledLayers[action.switchLayer.layer] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user