Skip to content

Commit

Permalink
Quickfix (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
phschaad authored Oct 10, 2023
1 parent a4dd699 commit c6a6ee2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/renderer/renderer_elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2034,9 +2034,11 @@ function batchedDrawEdges(
return;

// WCR Edge.
if (edge.parent_id !== null && edge.data.attributes.wcr !== null) {
deferredEdges.push(edge);
return;
if (!(graph instanceof State)) {
if (edge.parent_id !== null && edge.data.attributes.wcr !== null) {
deferredEdges.push(edge);
return;
}
}

// Colored edge through selection/hovering/highlighting.
Expand Down Expand Up @@ -2147,7 +2149,7 @@ export function drawStateContents(

batchedDrawEdges(
renderer, stateGraph, ctx, visibleRect, mousePos, '--color-default',
SDFVSettings.alwaysOnISEdgeLabels
false
);
}

Expand All @@ -2159,7 +2161,7 @@ export function drawStateMachine(
if (!lod || ppp < SDFV.EDGE_LOD)
batchedDrawEdges(
renderer, stateMachineGraph, ctx, visibleRect, mousePos,
'--interstate-edge-color'
'--interstate-edge-color', SDFVSettings.alwaysOnISEdgeLabels
);

for (const nodeId of stateMachineGraph.nodes()) {
Expand Down

0 comments on commit c6a6ee2

Please sign in to comment.