Browse Source

add missing updateFocusRepr to atomicDetail preset

- fixes #280
Alexander Rose 3 years ago
parent
commit
7f39cf0f37
1 changed files with 2 additions and 0 deletions
  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 };
     }
 });