Browse Source

fixed point .opaque value calc

Alexander Rose 6 years ago
parent
commit
168cba97bb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/mol-geo/geometry/points/points.ts

+ 4 - 1
src/mol-geo/geometry/points/points.ts

@@ -121,6 +121,9 @@ export namespace Points {
 
     export function updateRenderableState(state: RenderableState, props: PD.Values<Params>) {
         Geometry.updateRenderableState(state, props)
-        state.opaque = state.opaque && !props.pointFilledCircle && props.pointEdgeBleach === 0
+        state.opaque = state.opaque && (
+            !props.pointFilledCircle ||
+            (props.pointFilledCircle && props.pointEdgeBleach === 0)
+        )
     }
 }