--- 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();
}