Browse Source

Merge branch 'master' into cartoon-repr

Alexander Rose 6 years ago
parent
commit
6d14579aa7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/mol-model/structure/model/formats/mmcif/ihm.ts

+ 2 - 0
src/mol-model/structure/model/formats/mmcif/ihm.ts

@@ -28,6 +28,8 @@ export const EmptyIHMCoarse = { hierarchy: CoarseHierarchy.Empty, conformation:
 export function getIHMCoarse(data: IHMData): { hierarchy: CoarseHierarchy, conformation: CoarseConformation } {
     const { ihm_sphere_obj_site, ihm_gaussian_obj_site } = data;
 
+    if (ihm_sphere_obj_site._rowCount === 0 && ihm_gaussian_obj_site._rowCount === 0) return EmptyIHMCoarse;
+
     const sphereData = getData(ihm_sphere_obj_site);
     const sphereConformation = getSphereConformation(ihm_sphere_obj_site);
     const sphereKeys = getCoarseKeys(sphereData, data.entities);