client/js/renderer/scene.js
changeset 525 03aa989092bb
parent 524 904effa4b6d7
child 534 c25e7c9e26a0
--- a/client/js/renderer/scene.js	Wed Sep 16 17:36:46 2015 +0200
+++ b/client/js/renderer/scene.js	Wed Sep 16 17:54:07 2015 +0200
@@ -1209,8 +1209,8 @@
                 }
                 return;
             }
-            if (typeof _params.idView !== 'undefined'){
-                this.view = this.addRepresentation("View", this.renkan.project.get("views").at(this.validViewIndex(_params.idView)));
+            if (typeof _params.viewIndex !== 'undefined'){
+                this.view = this.addRepresentation("View", this.renkan.project.get("views").at(this.validViewIndex(_params.viewIndex)));
                 if (!this.renkan.options.default_view){
                     this.view.autoScale();
                 }