Skip to content
Snippets Groups Projects
Commit 9fbe224f authored by Alexander Rose's avatar Alexander Rose
Browse files

reset color of all components when setting assembly-symmetry off

parent bb6b6f96
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ export class AssemblySymmetryControls extends CollapsableControls<{}, AssemblySy
await this.plugin.builders.structure.insertStructureProperties(s.cell, params);
}
const components = this.plugin.managers.structure.hierarchy.currentComponentGroups[0];
for (const components of this.plugin.managers.structure.hierarchy.currentComponentGroups) {
if (values.symmetryIndex === -1) {
const name = components[0]?.representations[0]?.cell.transform.params?.colorTheme.name;
if (name === AssemblySymmetry.Tag.Cluster) {
......@@ -115,6 +115,7 @@ export class AssemblySymmetryControls extends CollapsableControls<{}, AssemblySy
await this.plugin.managers.structure.component.updateRepresentationsTheme(components, { color: AssemblySymmetry.Tag.Cluster as any })
}
}
}
paramsOnChange = (options: AssemblySymmetryProps) => {
this.updateAssemblySymmetry(options)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment