From 7f39cf0f37e66e35c8016620a8d753065d9b2978 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alexander.rose@weirdbyte.de> Date: Tue, 2 Nov 2021 22:10:35 -0700 Subject: [PATCH] add missing updateFocusRepr to atomicDetail preset - fixes #280 --- src/mol-plugin-state/builder/structure/representation-preset.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mol-plugin-state/builder/structure/representation-preset.ts b/src/mol-plugin-state/builder/structure/representation-preset.ts index de9e8caf7..698411123 100644 --- a/src/mol-plugin-state/builder/structure/representation-preset.ts +++ b/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 }; } }); -- GitLab