Update editEntities camera to not enable if camera is in independent mode

This commit is contained in:
Ryan Huffman 2015-01-27 11:28:39 -08:00
parent 2556b4790b
commit 80002551f9

View file

@ -80,7 +80,8 @@ CameraManager = function() {
that.lastMousePosition = { x: 0, y: 0 }; that.lastMousePosition = { x: 0, y: 0 };
that.enable = function() { that.enable = function() {
if (that.enabled) return; if (Camera.mode == "independent" || that.enabled) return;
that.enabled = true; that.enabled = true;
that.mode = MODE_INACTIVE; that.mode = MODE_INACTIVE;