소스 검색

add missing updateFocusRepr to atomicDetail preset

- fixes #280
Alexander Rose 3 년 전
부모
커밋
7f39cf0f37
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/mol-plugin-state/builder/structure/representation-preset.ts

+ 2 - 0
src/mol-plugin-state/builder/structure/representation-preset.ts

@@ -379,6 +379,8 @@ const atomicDetail = StructureRepresentationPresetProvider({
         }
 
         await update.commit({ revertOnError: true });
+        await updateFocusRepr(plugin, structure, params.theme?.focus?.name ?? color, params.theme?.focus?.params ?? colorParams);
+
         return { components, representations };
     }
 });