Procházet zdrojové kódy

fixed triple linkstyle in visuals

- was ignored
Alexander Rose před 4 roky
rodič
revize
c079a8c5a8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/mol-repr/structure/visual/util/link.ts

+ 1 - 1
src/mol-repr/structure/visual/util/link.ts

@@ -131,7 +131,7 @@ export function createLinkCylinderMesh(ctx: VisualContext, linkBuilder: LinkBuil
 
             addFixedCountDashedCylinder(builderState, va, vb, 0.5, 7, cylinderProps);
         } else if (linkStyle === LinkStyle.Double || linkStyle === LinkStyle.Triple) {
-            const order = LinkStyle.Double ? 2 : 3;
+            const order = linkStyle === LinkStyle.Double ? 2 : 3;
             const multiRadius = linkRadius * (linkScale / (0.5 * order));
             const absOffset = (linkRadius - multiRadius) * linkSpacing;