JonStargaryen 4 rokov pred
rodič
commit
58f57d5ad2

+ 1 - 1
src/extensions/membrane-orientation/behavior.ts

@@ -74,7 +74,7 @@ const isTransmembraneSymbol = QuerySymbolRuntime.Dynamic(CustomPropSymbol('membr
     ctx => {
         const structure = ctx.currentStructure;
         const { x, y, z } = StructureProperties.atom;
-        if (!structure.isAtomic) return 0;
+        if (!structure.isAtomic) return false;
         const membraneOrientation = MembraneOrientationProvider.get(structure).value;
         if (!membraneOrientation) return false;
         Vec3.set(pos, x(ctx.element), y(ctx.element), z(ctx.element));