client/js/renderer/scene.js
changeset 307 eaadfa988db4
parent 302 8eeb52f093e1
child 322 5897669370f4
--- a/client/js/renderer/scene.js	Sat Jun 14 00:15:35 2014 +0200
+++ b/client/js/renderer/scene.js	Sat Jun 14 13:44:22 2014 +0200
@@ -28,6 +28,7 @@
         this.node_layer = new paper.Layer();
         this.buttons_layer = new paper.Layer();
         this.delete_list = [];
+        this.redrawActive = true;
 
         if (_renkan.options.show_minimap) {
             this.minimap = {
@@ -825,6 +826,9 @@
             });
         },
         redraw: function() {
+            if(! this.redrawActive ) {
+                return;
+            }
             _(this.representations).each(function(_representation) {
                 _representation.redraw(true);
             });