Skip to content
Snippets Groups Projects
Commit 8dd1727c authored by David Sehnal's avatar David Sehnal
Browse files

mol-plugin: sync repr tweak

parent 71aa2183
No related branches found
No related tags found
No related merge requests found
......@@ -30,12 +30,7 @@ export function SyncRepresentationToCanvas(ctx: PluginContext) {
}
if (!SO.isRepresentation3D(e.obj)) return;
updateVisibility(e, e.obj.data);
ctx.canvas3d.add(e.obj.data);
console.log('update', e.ref, performance.now());
ctx.canvas3d.requestDraw(true);
});
events.object.removed.subscribe(e => {
if (!SO.isRepresentation3D(e.obj)) return;
......
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