Browse Source

mol-plugin: sync repr tweak

David Sehnal 6 years ago
parent
commit
8dd1727c6c
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/mol-plugin/behavior/static/representation.ts

+ 0 - 5
src/mol-plugin/behavior/static/representation.ts

@@ -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;