From 0266c4707b0162da24a4e22074fd1cb449d943c5 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Fri, 18 Sep 2015 23:41:38 -0400 Subject: [PATCH] too many render calls --- js/cells/DMACell.js | 1 - js/highlighter/Highlighter.js | 1 + js/three/ThreeModel.js | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/cells/DMACell.js b/js/cells/DMACell.js index 90b83d5b..fc4230e2 100644 --- a/js/cells/DMACell.js +++ b/js/cells/DMACell.js @@ -174,7 +174,6 @@ define(['underscore', 'three', 'threeModel', 'lattice', 'appState', 'globals', ' }); } this.setMaterial(material); - three.render(); }; DMACell.prototype.getParent = function(){ diff --git a/js/highlighter/Highlighter.js b/js/highlighter/Highlighter.js index ff5e2e19..30125aa7 100644 --- a/js/highlighter/Highlighter.js +++ b/js/highlighter/Highlighter.js @@ -77,6 +77,7 @@ define(['underscore', 'backbone', 'threeModel', 'appState', 'lattice', 'cell', ' if (state) this.hide(); object.getParent().setDeleteMode(state); } + three.render(); }, diff --git a/js/three/ThreeModel.js b/js/three/ThreeModel.js index 168b7d40..c8435294 100644 --- a/js/three/ThreeModel.js +++ b/js/three/ThreeModel.js @@ -169,6 +169,7 @@ define(['underscore', 'three'], function(_, THREE){ } function _render(){ +// console.log("render"); renderer.render(scene, camera); } -- GitLab