mirror of
https://github.com/3dmol/3Dmol.js.git
synced 2026-06-04 08:39:49 +09:00
Update color variables for dashed bonds
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user