Просмотр исходного кода

add missing updateFocusRepr to atomicDetail preset

- fixes #280
Alexander Rose 3 лет назад
Родитель
Сommit
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 };
     }
 });