|
@@ -313,19 +313,19 @@ export const MembraneOrientationPreset = StructureRepresentationPresetProvider({
|
|
|
const structure = structureCell?.obj?.data;
|
|
|
if (!structureCell || !structure) return {};
|
|
|
|
|
|
- if (!MembraneOrientationProvider.get(structure).value) {
|
|
|
- await plugin.runTask(Task.create(TMDET_MEMBRANE_ORIENTATION, async runtime => {
|
|
|
- await MembraneOrientationProvider.attach({ runtime, assetManager: plugin.managers.asset }, structure);
|
|
|
- }));
|
|
|
- }
|
|
|
+ // if (!MembraneOrientationProvider.get(structure).value) {
|
|
|
+ // await plugin.runTask(Task.create(TMDET_MEMBRANE_ORIENTATION, async runtime => {
|
|
|
+ // await MembraneOrientationProvider.attach({ runtime, assetManager: plugin.managers.asset }, structure);
|
|
|
+ // }));
|
|
|
+ // }
|
|
|
|
|
|
- const membraneOrientation = await tryCreateMembraneOrientation(plugin, structureCell);
|
|
|
+ // const membraneOrientation = await tryCreateMembraneOrientation(plugin, structureCell);
|
|
|
const colorTheme = TmDetColorThemeProvider.name as any;
|
|
|
console.log('MembOriPreset apply params:', params);
|
|
|
console.log('MembOriPreset ref:', ref);
|
|
|
const preset = await PresetStructureRepresentations.auto.apply(ref, { ...params, theme: { globalName: colorTheme, focus: { name: colorTheme } } }, plugin);
|
|
|
|
|
|
- return { components: preset.components, representations: { ...preset.representations, membraneOrientation } };
|
|
|
+ return { components: preset.components, representations: { ...preset.representations /*, membraneOrientation */ } };
|
|
|
}
|
|
|
});
|
|
|
|