Explorar el Código

fixed point .opaque value calc

Alexander Rose hace 6 años
padre
commit
168cba97bb
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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)
+        )
     }
 }