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

fixed colorTheme.structure assignment

parent 1c5f4cc0
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,7 @@ export function UnitsMeshVisual<P extends UnitsMeshProps>(builder: UnitsMeshVisu
if (!renderObject) return
const newProps = Object.assign({}, currentProps, props)
newProps.colorTheme.structure = currentStructure
const unit = currentGroup.units[0]
locationIt.reset()
......@@ -131,7 +132,6 @@ export function UnitsMeshVisual<P extends UnitsMeshProps>(builder: UnitsMeshVisu
} else {
if (group && !areGroupsIdentical(group, currentGroup)) {
currentGroup = group
currentProps.colorTheme.structure = currentStructure
}
await update(ctx, props)
}
......
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