소스 검색

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;