Update color variables for dashed bonds

This commit is contained in:
Daniel Caspi
2026-01-21 15:03:03 -06:00
committed by GitHub
parent 69f4a01f6f
commit 9c9a07283b

View File

@@ -968,8 +968,8 @@ export class GLModel {
toCap = 2;
const isDashed = atomDashedBonds || (renderBondOrder % 1 !== 0);
const colA = isDashed ? dashed1 : solid1;
const colB = isDashed ? dashed2 : solid2;
const colA = isDashed ? dashed1 : C1;
const colB = isDashed ? dashed2 : C2;
drawCyl(geo, p1, p2, bondR, colA, colB, fromCap, toCap);