浏览代码

mol-plugin: sync repr tweak

David Sehnal 6 年之前
父节点
当前提交
8dd1727c6c
共有 1 个文件被更改,包括 0 次插入5 次删除
  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;