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

tweaked canvas3d.mark

parent abc7341b
No related branches found
No related tags found
No related merge requests found
......@@ -141,16 +141,16 @@ namespace Canvas3D {
function mark(loci: Loci, action: MarkerAction, repr?: Representation.Any) {
let changed = false
reprRenderObjects.forEach((_, _repr) => {
if (!repr || repr === _repr) {
changed = _repr.mark(loci, action) || changed
}
})
if (repr) {
changed = repr.mark(loci, action)
} else {
reprRenderObjects.forEach((_, _repr) => { changed = _repr.mark(loci, action) || changed })
}
if (changed) {
scene.update(true)
const prevPickDirty = pickDirty
draw(true)
pickDirty = prevPickDirty // picking buffers should not have changed
pickDirty = prevPickDirty // marking does not change picking buffers
}
}
......
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