Skip to content

Commit

Permalink
Node path caches should be stored per-renderer rather than per-node, …
Browse files Browse the repository at this point in the history
…even if a ref to the path is stored in the node. #2028

Ref 17b2a8d
  • Loading branch information
maxkfranz committed Dec 14, 2017
1 parent 17b2a8d commit 145209d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/renderer/canvas/drawing-nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ CRp.drawNode = function( context, node, shiftToOriginWithBb, drawLabel ){
if( usePaths ){
context.translate( pos.x, pos.y );

let pathCache = rs.nodePathCache = rs.nodePathCache || [];
let pathCache = r.nodePathCache = r.nodePathCache || [];

let key = util.hashStrings(
styleShape === 'polygon' ? styleShape + ',' + shapePts.join(',') : styleShape,
Expand Down

0 comments on commit 145209d

Please sign in to comment.