xzw hai 8 meses
pai
achega
34b82a5c8d
Modificáronse 3 ficheiros con 13 adicións e 8 borrados
  1. 4 4
      public/lib/potree/potree.js
  2. 1 1
      public/lib/potree/potree.js.map
  3. 8 3
      src/sdk/cover/index.js

+ 4 - 4
public/lib/potree/potree.js

@@ -17478,7 +17478,7 @@
 	        //interactables中是否能找到this
 	        var finded;
 	        object.traverse(object => {
-	          if (object == this) {
+	          if (object == this.root) {
 	            finded = true;
 	            return {
 	              stopContinue: true
@@ -17500,8 +17500,8 @@
 	      return false;
 	    }
 	    var v = true;
-	    var parent = this.parent;
-	    var lastParent = this;
+	    var parent = this.root.parent;
+	    var lastParent = this.root;
 	    while (parent) {
 	      if (parent.visible === false) {
 	        v = false;
@@ -56591,7 +56591,7 @@
 	    var endPos = this.normal.clone().multiplyScalar(this.lineLength);
 	    LineDraw.updateLine(this.line, [new Vector3(0, 0, 0), endPos]);
 	    this.titleLabel.parent.position.copy(endPos);
-	    this.titleLabel.sprite.waitUpdate();
+	    this.titleLabel.updatePose();
 	    viewer.dispatchEvent('content_changed');
 	  }
 	  changeLineLen(len) {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
public/lib/potree/potree.js.map


+ 8 - 3
src/sdk/cover/index.js

@@ -19,7 +19,7 @@ let cesAspect
 
 
 
-//江门版本
+//江门本地版本
 
 
 
@@ -71,8 +71,12 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
     
     
     const mapBus = mitt(), sceneBus = mitt()
-
-
+    
+    
+    let isLocal2 = true
+    if(isLocal2){//本地配置
+        Potree.settings.isLocal = Potree.settings.tileOriginUrl = isLocal2 
+    } 
     
 
     Potree.settings.showCompass = true
@@ -1526,6 +1530,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
             tag.functions = {
                 bus, 
                 changeType(type){
+                    console.log('changeType', tag.title, type)
                     let onMesh = type == '3d'
                     if(tag.onMesh != onMesh){
                         tag.changeOnMesh(onMesh)