xzw 1 gadu atpakaļ
vecāks
revīzija
f586efb2b7

+ 2 - 2
src/custom/objects/TextSprite.js

@@ -72,10 +72,10 @@ export class TextSprite extends THREE.Object3D{
 	}
     setPos(pos){
         this.position.copy(pos)
-        this.sprite.update()
+        this.sprite.waitUpdate()
     }
     update(){
-        this.sprite.update()
+        this.sprite.waitUpdate()
     }
     setVisible(v){ 
         Potree.Utils.updateVisible(this, 'setVisible', v)

+ 1 - 1
src/custom/objects/tool/ctrlPolygon.js

@@ -529,7 +529,7 @@ export class ctrlPolygon extends THREE.Object3D {
     
     updateMarker(marker, pos){
         marker.position.copy(pos);
-        marker.update();
+        marker.waitUpdate();
     }