prevent deeply nested activations from calling classes that don't exist (by limiting to 3)

This commit is contained in:
Bland, Paul
2018-08-29 14:24:42 -04:00
parent 80c7c9a86e
commit 06aa4a5c07

View File

@@ -106,7 +106,7 @@ export const drawActivation = function (elem, bounds, verticalPos, conf, actorAc
const g = bounds.anchored
rect.x = bounds.startx
rect.y = bounds.starty
rect.class = 'activation' + actorActivations
rect.class = 'activation' + (actorActivations % 3) // Will evaluate to 0, 1 or 2
rect.width = bounds.stopx - bounds.startx
rect.height = verticalPos - bounds.starty
drawRect(g, rect)