fix potential infinite loop in orbit controls

This commit is contained in:
mschuetz 2015-05-05 10:47:54 +02:00
parent 1b69b74806
commit 7aef3dcc85

View File

@ -290,7 +290,7 @@ Potree.OrbitControls = function ( object, domElement ) {
this.dispatchEvent(proposeTransformEvent);
// check some counter proposals if transformation wasn't accepted
while(proposeTransformEvent.objections > 0 ){
if(proposeTransformEvent.objections > 0 ){
if(proposeTransformEvent.counterProposals.length > 0){
var cp = proposeTransformEvent.counterProposals;