fix potential infinite loop in orbit controls
This commit is contained in:
parent
1b69b74806
commit
7aef3dcc85
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user