change wrong uses of viewer variable to scope variable

This commit is contained in:
mschuetz 2016-01-08 11:42:57 +01:00
parent 8b9dddcd92
commit 322a5977a8

View File

@ -464,15 +464,15 @@ Potree.Viewer = function(domElement, args){
};
this.disableAnnotations = function(){
for(var i = 0; i < viewer.annotations.length; i++){
var annotation = viewer.annotations[i];
for(var i = 0; i < scope.annotations.length; i++){
var annotation = scope.annotations[i];
annotation.domElement.style.pointerEvents = "none";
};
};
this.enableAnnotations = function(){
for(var i = 0; i < viewer.annotations.length; i++){
var annotation = viewer.annotations[i];
for(var i = 0; i < scope.annotations.length; i++){
var annotation = scope.annotations[i];
annotation.domElement.style.pointerEvents = "auto";
};
};
@ -1413,9 +1413,9 @@ Potree.Viewer = function(domElement, args){
if(scope.showDebugInfos){
scope.infos.set("camera.position", "camera.position: " +
viewer.camera.position.x.toFixed(2)
+ ", " + viewer.camera.position.y.toFixed(2)
+ ", " + viewer.camera.position.z.toFixed(2)
scope.camera.position.x.toFixed(2)
+ ", " + scope.camera.position.y.toFixed(2)
+ ", " + scope.camera.position.z.toFixed(2)
);
}