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

fix polymer trace update logic

parent 0585f7b9
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ Note that since we don't clearly distinguish between a public and private interf
- Remove pca transform from components ui focus (too distracting)
- Fix artefacts with opaque outlines behind transparent objects
- Fix polymer trace visual not updating
## [v3.31.1] - 2023-02-05
......
......@@ -201,7 +201,7 @@ export function PolymerTraceVisual(materialId: number): UnitsVisual<PolymerTrace
const secondaryStructureHash = SecondaryStructureProvider.get(newStructureGroup.structure).version;
if ((state.info.secondaryStructureHash as number) !== secondaryStructureHash) {
state.createGeometry = state.info.secondaryStructureHash !== undefined;
if (state.info.secondaryStructureHash !== undefined) state.createGeometry = true;
state.info.secondaryStructureHash = secondaryStructureHash;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment